StrataFrame Forum

Field Based Security for ListViews

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

By lastcanary - 8/13/2010

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?
By Ivan George Borges - 8/13/2010

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

By lastcanary - 8/13/2010

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?
By Ivan George Borges - 8/14/2010

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