IBM BPM, V8.0.1, All platforms > Create processes in IBM Process Designer > Create user interfaces for business processes > Building Heritage Coaches > Configure Heritage Coach controls

Populating a list with dynamic data

Learn how to populate a list of options with dynamic data.

Before you can bind dynamic data to a coach control, you need to create the appropriate variables for your process or service. See the following topics to learn more.

Additional information for variable setup
To learn how to... See...
Create variables for a process Adding process variables to a BPD and Declaring and passing variables
How to map those process variables to Heritage Coach controls The following procedure and Building a Human service for an example
Map variables to a nested service and then bind those variables to Heritage Coach controls Building an Integration service for an example

The following procedure illustrates a combo box control (single-selection list) that uses a preexisting process variable to populate a list of options.

You can also bind Ajax services to Heritage Coach controls to perform actions such as automatically populating drop-down lists and enabling type-ahead capability in input fields. For more information, see Building an Ajax service .


Procedure

  1. Open the service that contains the Heritage Coach that you want to work with and then click the Coaches tab. Open or create a service for which you have declared a variable that is a complex structure.

  2. Drag a Combo Box control from the palette onto the design area.
  3. While the Combo Box control is still selected, click the Presentation option in the properties.
  4. Under Manual Data, click Add to include static instructions at the top of the drop-down list. For this example, the static text is: -- Select Dept –
  5. Under Dynamic Data, for the Based On option, click List Variable.

  6. For the Dynamic Binding option, click Select to choose the preexisting variable from the library as shown in the following image. For this example, the control must be bound to a complex structure that is a list.

  7. Click the Preview tab to see how the list works when the service runs. A service inputs data at run time which is used to populate the values of the drop-down list. Because these values are only known at run time, the values do not appear when you select the Preview tab at development time. These values do appear in the user interface at run time.

Configure Heritage Coach controls


Related tasks:
Populating a list with static data