I have an instance that looks like: <xforms:instance id="program-definition-instance"> <programs xmlns=""> <program> <title/> <categories xmlns=""> <category> <title/> <items> <item> <label/> <value/> </item> </items> <category-index>0</category-index> <section-index>0</section-index> </category> </categories> </program> </programs> </xforms:instance> I have a bunch of programs and categories in this instance. What I want to so is iterate through the instance and set the category-index and the section-index (to what doesn't matter). So I tried nested <xforms:repeat>’s but have not been able to setvalue within the repeat. I tried doing this inside a trigger but I got a message indicating repeats are not allowed inside an action (and putting the action inside the repeats didn’t work either). Am I missing something obvious? Any help or pointers would be most welcome! Thanks, Mike. -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Mike,
The xxforms:iterate on an action is what you are looking for. See: http://www.orbeon.com/orbeon/doc/reference-xforms-extensions#exforms-iterate Aelx On Tue, Jun 8, 2010 at 12:46 PM, <[hidden email]> wrote: > > I have an instance that looks like: > > <xforms:instance id="program-definition-instance"> > <programs xmlns=""> > <program> > <title/> > <categories xmlns=""> > <category> > <title/> > <items> > <item> > <label/> > <value/> > </item> > </items> > <category-index>0</category-index> > <section-index>0</section-index> > </category> > </categories> > </program> > </programs> > </xforms:instance> > > I have a bunch of programs and categories in this instance. What I want to so > is iterate through the instance and set the category-index and the > section-index (to what doesn't matter). So I tried nested <xforms:repeat>’s > but have not been able to setvalue within the repeat. I tried doing this inside > a trigger but I got a message indicating repeats are not allowed inside an > action (and putting the action inside the repeats didn’t work either). > > Am I missing something obvious? > > Any help or pointers would be most welcome! > > Thanks, > Mike. > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > -- Orbeon Forms - Web forms, open-source, for the Enterprise - http://www.orbeon.com/ My Twitter: http://twitter.com/avernet -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |