« Return to Thread: repeatable 2 tier select1

repeatable 2 tier select1

by Park, Michael :: Rate this Message:

Reply to Author | View in Thread

Some parts of this message have been removed. Learn more about Nabble's security policy.

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


Genres

ADD

Authority Genre




--
You receive this message as a subscriber of the ops-users@... mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

 « Return to Thread: repeatable 2 tier select1