I would love to display a repeat structure like this
Label: Input1 [del] Input2 [del] Input3 e.g. the label for the inputs in the first line, every other line with a delete trigger for that line. >From what I understand now I would need some kind of conditional depending on the repeat index. Is this possible? Thanks for any suggestions, Mathias -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Mathias,
I would add a <label> element to all them, with a text value if you want a label and <label/> where you want a trigger then <xforms:group ref="label[. != '']"> <xforms:output ref="label"/> </xforms:group> <xforms:group ref="label[. = '']"> <xforms:trigger> <xforms:label>Trigger</xforms:label> </xforms:trigger> </xforms:group> There might be a better way, but that's what comes to mind! Ryan Puddephatt Software Engineer TFX Group - IT UK 1 Michaelson Square Livingston West Lothian Scotand EH54 7DP * [hidden email] ( 01506 407 110 7 01506 407 108 >-----Original Message----- >From: Mathias Picker [mailto:[hidden email]] >Sent: 19 April 2006 16:42 >To: ops-users >Subject: [ops-users] Conditional output / label in repeat? > >I would love to display a repeat structure like this > >Label: Input1 > [del] Input2 > [del] Input3 > > >e.g. the label for the inputs in the first line, every other line with >a delete trigger for that line. > >>From what I understand now I would need some kind of conditional >depending on the repeat index. > >Is this possible? > >Thanks for any suggestions, > >Mathias > -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Am Mittwoch, den 19.04.2006, 16:30 +0100 schrieb Ryan Puddephatt:
> Mathias, > I would add a <label> element to all them, with a text value if you > want a label and <label/> where you want a trigger then > Ryan, I don't think I really get your answer. How do you do that inside a repeat statement? There seems to be no way to get output conditional on the repeat index. Do you mean to put a label inside the repeat instance data? Like, put one line with a label in there (the first) and one with an empty label which acts as template for the new lines... Hmmmm, sounds possible. I guess I need to learn to think more in manipulating instance data instead of the html. But then, I just got a really simple idea from re-reading the problem and your answer. Put the first line manually (with the label && no way to delete) and the rest in the repeat (with the delete trigger) without the first item of the instance... I will try this now. / Mathias > <xforms:group ref="label[. != '']"> > <xforms:output ref="label"/> > </xforms:group> > <xforms:group ref="label[. = '']"> > <xforms:trigger> > <xforms:label>Trigger</xforms:label> > </xforms:trigger> > </xforms:group> > > There might be a better way, but that's what comes to mind! > > Ryan Puddephatt > Software Engineer > TFX Group - IT UK > 1 Michaelson Square > Livingston > West Lothian > Scotand > EH54 7DP > > * [hidden email] > ( 01506 407 110 > 7 01506 407 108 > > > >-----Original Message----- > >From: Mathias Picker [mailto:[hidden email]] > >Sent: 19 April 2006 16:42 > >To: ops-users > >Subject: [ops-users] Conditional output / label in repeat? > > > >I would love to display a repeat structure like this > > > >Label: Input1 > > [del] Input2 > > [del] Input3 > > > > > >e.g. the label for the inputs in the first line, every other line with > >a delete trigger for that line. > > > >>From what I understand now I would need some kind of conditional > >depending on the repeat index. > > > >Is this possible? > > > >Thanks for any suggestions, > > > >Mathias > > > > > > einfaches Textdokument-Anlage (message-footer.txt) > -- > 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 > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
On 4/19/06, Mathias Picker <[hidden email]> wrote:
> Put the first line manually (with the label && no way to delete) and the > rest in the repeat (with the delete trigger) without the first item of > the instance... I will try this now. Mathias, Did you find a solution to this problem? Alex -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Am Donnerstag, den 27.04.2006, 20:09 -0700 schrieb Alessandro Vernet:
> On 4/19/06, Mathias Picker <[hidden email]> wrote: > > Put the first line manually (with the label && no way to delete) and the > > rest in the repeat (with the delete trigger) without the first item of > > the instance... I will try this now. > > Mathias, > > Did you find a solution to this problem? Not really, Alex, but since I allways have one row in my repeat I just do as I envisioned above: Put that one static row in by hand, with a label, and putting the optional ones in a repeat, with a delete button. It works, it looks like it's supposed to look, but it's not generic: if you need it for a repeat where all entries are optional, you need to find a better solution. Good luck, Mathias > > Alex > -- > Blog (XML, Web apps, Open Source): > http://www.orbeon.com/blog/ > > einfaches Textdokument-Anlage (message-footer.txt) > -- > 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 > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |