Sample Workflow Setup 3

This section explains how to set up a workflow that sets a different control as Active based on the value selected from a drop-down.

 

For this example, when a user selects “Student” from the “Currently a Student?” drop-down, the Education Information group box must display on the screen, and when the user selects “Non-Student” from the “Currently a Student?” drop-down, the Technical Interests group box must display on the screen.

To create Sample Setup 3:

1.    On the Customer Update form within the Detail Page > IndividUpdate page, create a “Currently a Student?” label with a combo box next to it binded to the CustomerClassCode and two value options of “Student” and “Non-Student.”

2.    Set the CustomerClassCode drop-down’s ValueWorkflowEnable property to “True.”
This ensures you can create the Decision Rule based on this control’s value.
36_customer_class_props.png

3.    Set the ControlWorkflowEnable property for the following pages to “True.”
This ensures both pages appear as options to set the controls to Active.

a.    Education

b.    Technical Interests

4.    Select the CustomerClassCode drop-down.

5.    Click the (...) button next to the OnValueValidate property.
The Available Workflows window displays.
05_workflow_list00009.png

6.    Click Add.
The Workflow Designer opens with a new workflow file.
18_blank_canvas00010.png

7.    Drag the Decision icon onto the workflow.
19_decision_dragged00011.png

8.    Right-click the Decision icon and select Edit Workflow.
20_edit_decision00012.png
The Edit Rule window displays.
21_Edit_Rule_window00013.png

9.    Click the [build condition] link.
A drop-down of options appear including those you set ValueWorkflowEnable as “True.”

10.  Select Customer Class.
38_customer_class_select.png
“Customer Class” appears in the rule sentence.

11.  Click the (...) link.

12.  Under the Compare section of the drop-down values, select “is equal to.”
39_select_equal_to_class.png

13.  Click the [value] link.

14.  Type “Student” and click Enter.
The final rule sentence should appear as below.
37_student_status_rule.png

15.  Click OK.
The Edit Rule window closes.

16.  Drag the Set Active Control onto the YES line of the workflow beneath the Decision icon.
25_drag_active_icon00014.png

17.  Right-click the Set Active Control icon and select Edit Workflow.
The Edit Rule window displays with a sentence already started.

18.  Click “Name of the control to set visible attribute on.”
The controls you set the IncludeInControlValue property to “True” appear in the list.

19.  Select Education.
40_select_Education.png

20.  Click OK.
This ensures that when the user selects “Student” from the “Currently a Student?” drop-down, the Education page displays.

21.  Drag another Set Active Control icon onto the NO side of the Decision icon’s workflow.
27_drag_2nd_active_icon00015.png

22.  Right-click this icon and select Edit Workflow.

23.  This time, for the “Name of the control to set visible attribute on,” select Technical Interests.

24.  Click OK to save the rule.
The Edit Rule window closes and the workflow creation is complete.

25.  From the Workflow Designer menu bar, select the Save icon.
28_select_save00016.png
The Workflow Name window appears.
29_wf_name00017.png

26.  Enter a name for your workflow.
For example, StudentStatus.

Note.pngYou can not include spaces in your Workflow Name.

27.  Click OK.

28.  Close the Workflow Designer.
The new workflow displays in the Available Workflows window.

29.  Select your new workflow (e.g., StudentStatus) and click OK.
The Workflow Name appears in the OnValueValidate property of the Update Now button.

30.  Save the form.

31.  You can now test your workflow by returning to your application, opening the form and searching for an Individual. Then click Update Now and select either “Student” or “Non-Student” from the “Currently a Student?” drop-down to ensure the correct page displays for either Education Information or Technical Interests.