Content from Data Design
Last updated
Last updated
Content from Data Design
is an that is used to generate content using a as a template. The output is of type and is compatible with of type or of type .
The generated content can be added to the page or form using the block.
and elements, used inside a Data Design element, need to be initialized using the , after they are added to the page or form.
Each generated instance of the same can be made unique for user-interactivity or modifications using the ID and the optional ID2 . More on this below.
The block comes in two modes which are discussed below.
The Mode 1 version of the Content from Data Design block consists of the following (from top to bottom):
The Mode 2 version of the Content from Data Design block consists of the following (from top to bottom):
Element: a to choose the element to use as the template.
ID: Mandatory that accepts a value representing a unique identifier that will be used to reference elements that are generated.
ID2: Optional that accepts a value representing the secondary identifier that will be used to reference elements that are generated.
Data: consisting of named parameters. The named parameters must match the names used in the data design. Selecting the Data Design element will automatically populate the set with the names. You can also use the gear icon to manually add/remove parameters.
Element: a to choose the element to use as the template.
ID: Mandatory that accepts a value representing a unique identifier that will be used to reference elements that are generated.
ID2: Optional that accepts a value representing the secondary identifier that will be used to reference elements that are generated.
Data: that accepts an value. The provided object must have properties with names that match the names used in the data design.
The image below shows an example of Content from Data Design
(Mode 1). The Data in this case contains three whose values are set as shown. The names of these parameters are from the names used in the selected (DataDesign8).
In the next example we see the Content from Data Design
(Mode 2) block. In this case the Data is attached to a Variable Value block configured to use the variable city info whose value is an object with property names matching the names used in the selected (DataDesign8).
Both examples will have identical results with the output being attached to the block configured with the same element.