Appboard/2.5/builder/widgets/actions/change diagram context
The "Change Diagram Context" Action was created for the Diagrammer Widget for users to change the model of the diagram in the Widget without having to create a separate Widget for separate models.
How To Create a Change Diagram Context Action
For instructions on adding an Action to a Widget, see the general instructions in How To Create an Action in a Widget.
How To Configure a Change Diagram Context Action
Perform the following steps to configure a "Change Diagram Context" Action:
- Follow the instructions above to create the Action in the Widget Actions panel.
- Name: Enter a name for this Action. For convenience, a default name is provided. The Name is not used anywhere else in AppBoard, and only displayed on this configuration page.
- On selection of:
- Select "any" or "specific" for the type of data selection by the User that will trigger the Action. When selecting "specific", perform the following additional steps:
- Click the Filter button. The Filter Editor is displayed.
- Click Add Rule to create one or more rules that indicate what data should trigger the Action, when selected.
- Click Close to save the Filter settings.
- Select the Data Source name. When the Widget is run, selection of data in this Data Source will trigger the Action.
- Select "any" or "specific" for the type of data selection by the User that will trigger the Action. When selecting "specific", perform the following additional steps:
- Change Diagram Widget: Select the name of the Diagrammer Widget that will be changed with this action.
- Select either "To use Diagram Model:" or "To use Diagram Model by name from selected property:"
- Select "To use Diagram Model:" to choose the previously created model you would like the Diagram to change to.
- Select "To use Diagram Model by name from selected property:" to choose a property.
- Click "Close" to complete the creation of a "Change Diagram Context" Action.
Sample Use Case
When showing a network diagram, one might want to have some subnet nodes that when clicked cause the diagrammer to switch to a new diagram depicting the subnet graph -- acting like a topology drill in.