Field Based Security for ListViews


Author
Message
lastcanary
lastcanary
StrataFrame User (155 reputation)StrataFrame User (155 reputation)StrataFrame User (155 reputation)StrataFrame User (155 reputation)StrataFrame User (155 reputation)StrataFrame User (155 reputation)StrataFrame User (155 reputation)StrataFrame User (155 reputation)StrataFrame User (155 reputation)
Group: StrataFrame Users
Posts: 81, Visits: 270
Hi,



We liked and used the field based security feature. In textboxes, field based security works perfectly but in Browse Dialogs the secured fields are still displayed in listviews.



Are we missing something or is this the case for the field based security?
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
I think this is something you will have to deal programatically, hiding or showing Search Fields depending on the user Permissions, something like:

    If SecurityBasics.CurrentUser.GetPermission("YourPermissionKey").Action = PermissionAction.Grant
        '-- grant access to whatever

    Else
        '-- deny access to whatever

    End If


lastcanary
lastcanary
StrataFrame User (155 reputation)StrataFrame User (155 reputation)StrataFrame User (155 reputation)StrataFrame User (155 reputation)StrataFrame User (155 reputation)StrataFrame User (155 reputation)StrataFrame User (155 reputation)StrataFrame User (155 reputation)StrataFrame User (155 reputation)
Group: StrataFrame Users
Posts: 81, Visits: 270
Thank you for your answer. Could you please help us to do it for the BrowseResults listview? Is it possible to display the same information as it is displayed in the textboxes if the field is a secured field?
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Yep, based on the user permission as I showed you before, you could insert code into the BrowseDialog RowPopulating event handler and conditionaly fill the column with the desired results. For that, when setting the BrowseDialog BrowseResultsLayout, you would set the column property Population Type to PopulatedThroughEvent. This post gives you the idea:

http://forum.strataframe.net/FindPost20241.aspx

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search