Creating multiple command buttons in web applications
OpenEdge BPM Designer automatically displays multiple command buttons (Submit button, Hyperlink, or Image) in the presentation page of an Activity workstep that has multiple outgoing connectors. Each command button corresponds to each of the outgoing connector.
By default, the Properties view for each connector contains a blank Label box that inserts the default label in the presentation page. To change the default label, in the Properties view, enter a new label in the Label box, which replaces the default label for the button.
To create multiple Command buttons:
1. Add worksteps to the application and connect them to an Activity workstep. In the example illustrated in Figure 18, four Link type connectors are added to the “Activity 2” workstep.
2. Click each of the connector to display its Properties view.
3. Select the appropriate option from the Type drop-down list as illustrated in Figure 18.
4. Assign a name and enter a label for each connector. The label for the moreinfo connector is “Need more information”, the approve connector’s label is “Approve Request,” the reject connector’s label is “Reject Request”, and the label for the defer connector is “Defer indefinitely.”
Figure 18. Creating Multiple Command Buttons for an Activity Workstep
5. Click File > Save or the Save icon to save the changes.
6. Publish the Web application, as described in Publishing an application . In the interface (or presentation) page, these values appear as labels of the buttons.
Figure 19. Multiple Command Buttons in the Interface page
Note: When the application user has two or more options in a presentation, the conditions are mutually exclusive—the user cannot click more than one Submit button at the same time.
After generating multiple command buttons in a workstep, you can run a process instance during which conditions are checked to see whether the name attribute of the link connection has a value. Consequently, the flow transfers to the next appropriate workstep.
Note: BPM Designer automatically generates a Reset button for each presentation page that contains editable fields.