Hi! I have a series of triggers that delete specific nodes. I'd like to use an fr:alert-dialog as an "are you sure?" message...however, I'd like to reuse the same dialog box for all the triggers I have.
I had hoped I could use a "ui" instance that holds the value of the node name, each trigger would set the value of it, then in the fr:alert-dialog: <fr:positive-choice> <xforms:action ev:event="DOMActivate"> <xforms:delete nodeset="instance('main-instance')//PATH-TO/NODE/{instance('ui')/name-of-node}"/> </xforms:action> however, according to: http://wiki.orbeon.com/forms/doc/developer-guide/xforms-attribute-value-templates <xforms:delete> isn't supported. Does anyone have ideas on other ways to do this? Thanks!
-- Francis
|
Administrator
|
The good news is that you don't need AVTs for this. You could write
something like: <xforms:delete nodeset="instance('main-instance')//PATH-TO/NODE/*[local-name() = instance('ui')/name-of-node]"/> -Erik On Tue, Jun 1, 2010 at 12:21 PM, FParsons <[hidden email]> wrote: > > Hi! I have a series of triggers that delete specific nodes. I'd like to use > an fr:alert-dialog as an "are you sure?" message...however, I'd like to > reuse the same dialog box for all the triggers I have. > > I had hoped I could use a "ui" instance that holds the value of the node > name, each trigger would set the value of it, then in the fr:alert-dialog: > > <fr:positive-choice> > <xforms:action ev:event="DOMActivate"> > <xforms:delete > nodeset="instance('main-instance')//PATH-TO/NODE/{instance('ui')/name-of-node}"/> > </xforms:action> > > however, according to: > http://wiki.orbeon.com/forms/doc/developer-guide/xforms-attribute-value-templates > > <xforms:delete> isn't supported. Does anyone have ideas on other ways to do > this? > > Thanks! > > ----- > -- Francis > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/re-using-a-fr-alert-dialog-tp2239065p2239065.html > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com. > > > -- > 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 > > -- 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 |
Erik - thanks very much! the use of "*[local-name()=stored_name_of_node]" actually solved another problem I was mulling over so thanks again!
-- Francis
|
Administrator
|
Great to hear. -Erik
On Wed, Jun 16, 2010 at 5:34 AM, FParsons <[hidden email]> wrote: > > Erik - thanks very much! the use of "*[local-name()=stored_name_of_node]" > actually solved another problem I was mulling over so thanks again! > > ----- > -- Francis > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/re-using-a-fr-alert-dialog-tp2239065p2257264.html > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com. > > > -- > 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 > > -- 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 |
Free forum by Nabble | Edit this page |