Dynamic Display is a generic display element that can act at runtime as any other display element. Its typical usage is to dynamically change part of the display on screen according to the type of data the application needs to display.
Dynamic Display is similar to Variable Pane, but Variable Pane can switch only between a set of specific display elements explicitly specified in its model, while Dynamic Display can bet set at runtime to any display element.
Variable Pane | Dynamic Display | |
Child Elements | Any number of display elements ("display options") | None (no specific display element is contained in the Dynamic Display model) |
Dynamically deciding what is displayed at runtime | Setting a value to an element within one of the display options | Setting the Dynamic Display to the desired display |
Adding a display option | Explicit in model – Add an additional display element to the Variable Pane | At runtime, as determined by the model’s logic (setting the Dynamic Display to a display of another type) |
What is displayed by default | Nothing | Nothing |
Hiding current content at runtime | Set to 'No' the <Visible> element of the Variable Pane (or one of its parents). | Set to 'No' the <Visible> element of one of the Dynamic Display’s parents. |
Removing current content at runtime | Choose another display option | Use a Remove flow with the Dynamic Display element as target. |
Model Validation | Currently none | Currently none |
Usage Example
The ‘Tersus Web Site Application’ project contains an example of using Dynamic Display to display web pages.
The model contains a Dynamic Display element called Dynamic Content that is set at runtime to one of several different display elements: