Creating dynamic interfaces
You already know about the showWhen
parameter and how to assign different values to parameters depending on logic, and you implemented a dynamic list of components to display multiple orders using forEach
.
The important part of creating dynamic interfaces is that you need a way to store the state. State means one or more local variables you use to control which parts of the interface to show. To understand how that works, we will dissect one of the interface patterns provided by Appian:
- Create a new interface, just for this investigation, and name it
IVP_F_Test
. You can delete this interface at the end of our small workshop. Switch to the PATTERNS palette and add the TABS pattern to the empty interface:
- Then, switch to EXPRESSION MODE. The first few lines define a local variable and
buttonArrayLayout
containing a list of buttons:
{ a!localVariables...