Re: [Xsltforms-support] stepping through recordset type data display
Brought to you by:
alain-couthures
|
From: Tambet M. <tam...@gm...> - 2010-01-05 08:01:41
|
Stephen Cameron wrote:
> Hello,
>
> I have a specific problem where I wish to select a record from a
> xf:select1 list and then on on the basis of the selected value display a
> full record below it.
>
> The full record will be displayed with the use of a xf:group tag, so I
> am a really wanting to dynamically change the node the group references
> via its 'ref 'or 'bind' attribute
Something like this should work:
<xforms:select1 ref="instance('temp')/selected_id">
<xforms:itemset nodeset="instance('data')/item">
<xforms:value ref="id"/>
<xforms:label ref="label"/>
</xforms:itemset>
</xforms:select1>
<xforms:group ref="instance('data')/item[id =
instance('temp')/selected_id]">
<xforms:output ref="id">...</xforms:output>
<xforms:output ref="label">...</xforms:output>
</xforms:group>
Tambet
|