Element Details: Security+Filter
 Back


Available in: Logi Info Source code name: SecurityFilter

SecurityFilter filters DataLayer records so that only a subset of the records is viewable by the user. He can only see those records that he is allowed to see.

Set the SecurityFilterRightID to point to a Right in Settings. Users that have that right will be able to see all records that match the Condition. A Condition is a VBScript or JavaScript expression, and usually contains tokens such as @Data that compare each data record with a value.

Add as many SecurityFilters as needed. They are ORed together, meaning rows will be shown that are allowed by any of the SecurityFilters. When the user has no rights to any of the SecurityFilters, all rows are removed.

Note that when rights come only from RightFromRole elements under Security/Rights, and this element’s SecurityFilterRightID does not match an ID from a RightFromRole element, then access to the row is controlled by the Condition, as though the user does have that right.

Element Group:Filter Rows



ATTRIBUTES

Click attribute Name to drill down for more information.

NamePossible ValuesDescription
Condition
UserDefined
(Required) An expression that evaluates to a value of True or False. Expressions should be in JavaScript (recommended) or VBScript syntax. For .NET versions, the scripting language can be set in the _settings.lgx General element. For Java versions, the scripting language is always JavaScript. Typically, you would compare values using a token, such as "@Data.value~ < 0" or "@Session.ShowCol1~=='true'". Elements are removed when the Condition evaluates to False. Use quotes when working with strings: "@Data.myColumn~" == "SomeValue" If your data token may have a double quote inside of it, you should use single quotes: '@Data.myColumn~' == 'SomeValue' String valued data tokens with single and double quotes inside are not supported by the condition attribute.
ID
UserDefined
The ID attribute is a pervasive attribute that uniquely identifies an element within a definition file. The ID needs to be a unique value within the definition.
IncludeCondition
True
False
An expression that evaluates to a value of True or False. If the expression is blank, or evaluates to true the element is processed. If the expression evaluates to false, the element is skipped. Expressions should be in VBScript or JavaScript syntax. For .NET versions, the scripting language can be set in the _settings.lgx General element. For Java versions, the scripting language is always JavaScript. Typically, you would compare values using an operator, such as "@Session.value~ < 0". Use quotes when working with strings: "@Session.myValue~" == "SomeValue"
SecurityFilterRightID
UserDefined
(Required) Set the SecurityFilterRightID to point to a Right in Settings. Users that have that right will be able to see all records that match the Condition. A Condition is a VBScript or JavaScript expression, and usually contains tokens such as @Data that compare each data record with a value. Note that when rights come from RightFromRole elements under Security/UserRights, and this element's SecurityFilterRightID does NOT match any of the Right IDs defined in the Settings definition, then the user DOES have access. But when Right IDs are instead derived from RightsFromDataLayer or RightsFromRoles elements, and the user DOES NOT have a matching Right, then the user DOES NOT have access. You can enter multiple right IDs, separated by commas. In this case, the user sees the element if he has any one of the Rights.



PARENT ELEMENTS

Click element to drill down for more information.

DataLayer.Bookmarks
DataLayer.Cached
DataLayer.CSV
DataLayer.Definition List
DataLayer.Excel
DataLayer.Fixed Format File
DataLayer.Google App
DataLayer.Google Spreadsheet
DataLayer.GPX File
DataLayer.JSON
DataLayer.KML File
DataLayer.LDAP
DataLayer.Mongo Find
DataLayer.Mongo Map Reduce
DataLayer.Mongo Run Command
DataLayer.Plugin
DataLayer.REST
DataLayer.Scheduler
DataLayer.Shape
DataLayer.SimpleDB
DataLayer.SP
DataLayer.SQL
DataLayer.Static
DataLayer.Twitter
DataLayer.Web Feed
DataLayer.Web Scraper
DataLayer.Web Service
DataLayer.XML
Right.Static


CHILD ELEMENTS

Click element to drill down for more information.



 Back to top


 Chart Debug