Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListReturn Only Rows Submitted by User through SearchReturn Only Rows Submitted by User through Search
Previous
 
Next
New Post
4/5/2013 12:12 PM
 

Hi guys, I have a situation where I have several Roles - Role1, Role2, Role3. I need this to happen: after a user from Role1 submits a few records, he can use Search and it would return only his own records. This I was able to do after some research and using the built-in XSL sheet. However, here is a tricky part, I also need for users in Role2 and Role3 to be able to see everyone's records from Role1! Right now the only way I know how to achieve this is by granting Administrator role to users in Role2 and Role3 but I really can't afford this.

Also, by looking at the ownitemmonly XSL source code I have noticed this line:

<xsl:for-each select="//udt:Fields[(udt:FieldType!='CreatedBy' and udt:Visible='true')  or (udt:FieldType='CreatedBy'<i><span style="> and $IsAdministrator)]"> </xsl:for-each>

I am wondering if I could edit the line to look like this would do it:

<xsl:for-each select="//udt:Fields[(udt:FieldType!='CreatedBy' and udt:Visible='true')  or (udt:FieldType='CreatedBy'<i><span style="> and $IsAdministrator and $IsRole2 and $IsRole3)]"> </xsl:for-each>

I would really appreciate any help!

 
New Post
4/5/2013 7:13 PM
 
What records are you storing? Are they in a custom table that you built?

Mark
 
New Post
4/8/2013 8:15 AM
 
Mark, thanks for you post! The FnL module stores training information for users - not really sure what else to mention here. I have not run any SQL statements to create the table and just used the module's UI to interact with it. As mentioned in original post, I used a XSL template so that only own items return in the result set.
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListReturn Only Rows Submitted by User through SearchReturn Only Rows Submitted by User through Search


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out