« Return to Thread: repeatable 2 tier select1
Hello,
Has
anyone successfully created a select1 that triggers a second select1, which is
repeatable?
I
cannot get the behavior correct with 2 select1s once I add it to a repeat
element. I think I am close though.
Any
help would be appreciated. I’ve attached the code and inserted the
repeat section.
<xforms:repeat
nodeset="instance('genres')/info" id="repeat">
<xforms:select1 ref="@authority">
<xforms:label>Authority </xforms:label>
<xforms:itemset nodeset="instance('choices')/authority">
<xforms:label ref="@label" />
<xforms:value ref="@value" />
</xforms:itemset>
</xforms:select1>
<xforms:select1 ref="@genre">
<xforms:label>Genre </xforms:label>
<xforms:itemset nodeset="for $pos in position() return
instance('genre-select')/genre[@auth = instance('genres')/info[$pos]/@authority]">
<xforms:label ref="@label" />
<xforms:value ref="@value" />
</xforms:itemset>
</xforms:select1>
</xforms:repeat>
Thanks,
Mike
« Return to Thread: repeatable 2 tier select1
| Free Forum Powered by Nabble | Forum Help |