The following examples are advanced implementations of using the cell
tag with tables.
Examples
Piping dynamic responses for a column
Responses from a previous table can be piped into another table by using the cell
tag to target specific columns for piping. For example, in T7B, column 1 displays responses from T7A (the previous year), while column 2 allows users to input anticipated results for this year. Both tables share the same SKIRESORTS list for rows. The text
decorator specifies the piped text using {text: $Q7AR[rid]}
to dynamically insert responses from T7A into T7B.
Embedding questions into a table cell
Question widgets may be piped or "embedded" into cells using a text
decorator with the cell
tag. In the below example, T9 is defined as a text table. The text
decorator uses double-underscore syntax, similar to set text
widgets, to replace the targeted cells with the pulldown-type questions defined in the block below the table, embedding those questions in the table.
Accessing list option data
Option data from a list or spreadsheet can also be piped into a cell by using a text
decorator with the cell
tag. For instance, in column 1 (Category), the text
decorator replaces the default content with data from the CAT field in the BRANDS list. Inline XSlate code ([% ... %]
) accesses the row data ($row_data
) and retrieves and displays the corresponding CAT values.
Comments
0 comments
Please sign in to leave a comment.