Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Work Tasks

Use the Security APIs

  • Last UpdatedJun 25, 2024
  • 1 minute read

In the following example, we create a Work Order form and we hide controls based on the Security Group of the user viewing the form.

  1. Create a Work Order form as shown in the following image:

  2. Modify the properties of the Edit tab of the Tabs control as follows:

    1. In the Scripts tab, set the script for the Visible property as follows:

      var securityGroup = SFU.getUserSecurityGroup();

      if(securityGroup === "WorkOrderAdmin")

      {

      return true;

      }

      return false;

  3. Publish the form.

The Edit tab is not visible to a user who does not belong to the WorkOrderAdmin security group.

Note: You can use SFU.getUserRoles() and SFU.getValueForRightCode() security API's in the same way as described in this example.

Related Links
TitleResults for “How to create a CRG?”Also Available in