| Project: | formsPlayer |
| Version: | 1.5.2 |
| Component: | Code |
| Category: | bug |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
xf:itemset can be used with xf:select1 to specify a list of choices that originate from the instance data. Typical usage is like this:
<xf:select1 ref="a" appearance="full">
<xf:label>Select</xf:label>
<xf:itemset nodeset="../b">
<xf:label ref="." />
<xf:value value="." />
</xf:itemset>
</xf:select1>
But it's also possible to place xf:output controls in the label, to create more complex output:
<xf:select1 ref="a" appearance="full">
<xf:label>Select</xf:label>
<xf:itemset nodeset="../b">
<xf:label>
<xf:output ref="." />
</xf:label>
<xf:value value="." />
</xf:itemset>
</xf:select1>
Currently, the evaluation context of the xf:label is the evaluation of the control itself (in this case a) rather than the node indicated by the iterator. Sample code is available in test 2 in the select1 itemset test.


Recent comments
13 weeks 21 hours ago
14 weeks 6 days ago
21 weeks 6 days ago
45 weeks 4 days ago
1 year 3 weeks ago
2 years 2 weeks ago
2 years 2 weeks ago
2 years 5 weeks ago
2 years 7 weeks ago
2 years 7 weeks ago