User Field Dependency Tutorial

Prerequisites:

The following tutorial explains how to configure field dependencies that tailor the selection list for a User field. Dependencies will be set that limit the selections available in an Employee field depending on the selection made in the Manager field. For example, if a user selects Kathy Manager from the Manager field, Chris Tester and Hans Tester are available selections for the Employee field; if the user selects Joe Manager from the Manager field, Laura Engineer and Newton Engineer are available as selections for the Employee field.

Establish the Dependency in SBM Composer

In this step, you will create two User fields and establish a dependency between those fields.

To establish a dependency for a User field:

  1. Open a process app in SBM Composer.
  2. From the App Explorer, select the primary table for your application.
  3. Add a User field named Manager.
  4. Add another User field named Employee.
  5. Select the Manager field, and then select the Dependencies tab.
  6. In the list of available dependent fields, select Employee.
  7. Save, check in, publish, and deploy your changes.

Add User Selections for the Independent and Dependent Fields

In this step, you will add user selections to the fields created in the previous step. To illustrate the example, sample users are added to the field.

To add user selections:

  1. In Application Administrator, edit the workflow that contains the Manager and Employee fields.
  2. Select the Default Fields tab.
  3. Select the Manager field, and then click Details.
  4. Select the Attributes tab.
  5. In the Values section, click Manage User Selections, and then add Kathy Manager and Joe Manager as selections.
  6. Save your changes.
  7. Select the Employee field, and then click Details.
  8. Select the Attributes tab.
  9. In the Values section, click Manage User Selections, and then add Laura Engineer, Newton Engineer, Chris Tester, and Hans Tester as selections.
  10. Save your changes.

Set Dependent Field Selections

In Application Administrator, you will specify which field selections are available for the dependent field based on the selection users make for the independent field. For example, when a user selects Kathy Manager from the Manager field, Chris Tester and Hans Tester are the only selections available in the Employee field.

To set dependent field selections:

  1. In Application Administrator, edit the project for which the dependent values should be set.
  2. Select the Default Fields tab.
  3. Select the Manager field, and then click Details.
  4. Select the Dependencies tab.
  5. From the Select Value to Override list, select Joe Manager.
  6. In the Fields Dependent on Manager pane, select the Employee field.
  7. Clear the check boxes next to Chris Tester and Hans Tester.
  8. From the Select Value to Override list, select Kathy Manager.
  9. In the Fields Dependent on Manager pane, select the Employee field.
  10. Clear the check boxes next to Laura Engineer and Newton Engineer, and then click OK.
  11. Save your changes.

Test the Dependency

To test the dependency:

  1. Log into the SBM User Workspace as a user who has privileges to the application that contains the dependency.
  2. Submit an item into the project that you modified in Application Administrator in the previous steps.
  3. On the Submit from, select Kathy Manager from the Manager field. Notice that Chris Tester and Hans Tester are available as selections for the Employee field.
  4. Select Joe Manager from the Manager field. Notice that Laura Engineer and Newton Engineer are available as selections for the Employee field.