This topic provides an example on how to programmatically configure Data Element security.
NOTE: This should not be the default mechanism for security, but used in specific use-cases, for example:
- In some cases, certain data elements do not provide the ability to configure Data Element security from the Designer, and this is required
- In some cases the ability to configure data element security is required on the Operator
NOTE: This is an advanced mechanism and should not be used in general for configuration of security by Operators as it can corrupt the security database (if invalid data is provided for example).
Example:
The SYSTEM.CLIENTS data element can not be configured for Data Element Security from the Designer. However, using the Graphic Form (provided below), this can be done programmatically:
- Type in the Data Element name i.e. System.Clients
- Click “Get Security Config”
- Choose the user or group
- Choose the access rights
- Click “Set Security Config”
The form can be downloaded here (and provides an example of programmatically applying security as part of the embedded C# script.)
ConfigureDataElementSecurity.viz (39.5 KB)