Data components (Variable, Array, Toggle)
Explore App Connect data components—Variable, Array, and Toggle—and the key Properties you’ll configure for each.
Data components
Section titled “Data components”This tour introduces the small set of App Connect components that create client-side state before the rest of the page consumes it. You will compare Variable, Array, and Toggle as foundational building blocks, then connect each choice to the bindings, actions, and UI patterns it supports best.
Which one should you use?
Section titled “Which one should you use?”This tour helps you choose the right state primitive before you start wiring the page. Instead of memorizing three components separately, you will learn the decision rule for each one, how they appear in Structure, and how their values are typically consumed by bindings and actions.
Where you configure these
Section titled “Where you configure these”Insert the component via App Structure, then configure ID + bindings in Properties.
Variable (dmx-value)
Section titled “Variable (dmx-value)”A Variable stores a single value you can reference in bindings and set via actions.
The ID is how you reference the component in bindings and action pickers. This step matters because ID is part of Selection Panels Properties Theid, and understanding that context makes the next action easier to repeat in your own project.
Value is the initial data stored in the Variable. Use the expression picker to select data and formatters.
Common action: setValue
Section titled “Common action: setValue”Most pages use an event (like click) to run setValue on a Variable. This keeps state changes visual and consistent.
Array (dmx-array)
Section titled “Array (dmx-array)”Array stores a list of items and offers actions to add/remove/update list entries.
Name it for what it holds (for example: products, tags, steps). This step matters because ID is part of Selection Panels Properties Theid, and understanding that context makes the next action easier to repeat in your own project.
Items defines the initial list (binding). In practice, Arrays are often filled/changed by actions.
tip: If you need filtering, sorting, or paging, use a Data View on top of your source data.
Toggle (dmx-toggle)
Section titled “Toggle (dmx-toggle)”Toggle holds a boolean state. It’s ideal for showing/hiding UI or enabling/disabling actions.
Set a clear ID so it’s obvious what the toggle represents (for example: showDetails). This step matters because ID is part of Selection Panels Properties Theid, and understanding that context makes the next action easier to repeat in your own project.
Checked
Section titled “Checked”Checked controls the initial on/off state. You can bind it to other data, or set it through actions.
Conclusion
Section titled “Conclusion”Next, learn collections and traversal: Data Store and Data View.
Pick your next tour
Section titled “Pick your next tour”Choose a focused tour based on what you want to build.