Controlled Tab Example 2 - Managing Access to a Control

This example describes how to manage access to a control, based on the group membership of the logged in user.

To manage access to a control based on the logged-in user:

  1. Create a data card and link it to the extension .doc or .docx.
  2. Add a tab control.
  3. In the Tab properties pane:
    1. Select Controlled by variable and select the variable <Name of group>.

      The group membership of the logged in user will control which tab is visible.

    2. Leave the first tab name empty and type the name of an existing user group such as Project Leaders as the name of the second tab.
  4. Add a check box control to the first tab.
  5. In the Checkbox properties pane:
    1. Under Caption, type Approved.
    2. Under Value, for Variable name, select Approved.
    3. Under Flags, select Read-only.
  6. Copy the check box control and paste it onto the second tab.
  7. In the Checkbox properties pane, under Flags, clear Read-only.
  8. Save the data card to a folder in the vault.
  9. To test the card, log in as a user who is not in the Project Leaders group.
  10. Select a .doc or .docx file in the folder where you saved the card.

    On the Data Card tab, the check box is visible, but cannot be edited.

  11. Log in as a user in the Project Leaders group and select the same .doc or .docx file.

    On the Data Card tab, you can check or clear the check box.