how to store instance in xxforms:variable?
in model i define: <xxforms:variable name="dlg-ref-general-instance-control" select="()"/> but the next code not working: <xforms:setvalue ref="$dlg-ref-general-instance-control" value="xxforms:instance('ref-okved-ctrl')"/> please, help! |
Administrator
|
xxforms:variable works like in XSLT: once a variable is evaluated, you
cannot change it's value. So you have to write: <xxforms:variable name="dlg-ref-general-instance-control" select="xxforms:instance('ref-okved-ctrl')"/> -Erik On Oct 1, 2008, at 6:23 AM, ????? wrote: > > how to store instance in xxforms:variable? > > in model i define: > > <xxforms:variable name="dlg-ref-general-instance-control" > select="()"/> > > > but the next code not working: > > <xforms:setvalue ref="$dlg-ref-general-instance-control" > value="xxforms:instance('ref-okved-ctrl')"/> > > > please, help! > -- > View this message in context: http://www.nabble.com/how-to-store-instance-in-xxforms%3Avariable--tp19760375p19760375.html > Sent from the ObjectWeb 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 Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.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 |
ok.
Another question: how to send the instance from main page to dialog through session scope? my example, in main page pun in session scope: <xforms:insert context="." origin="xxforms:set-session-attribute('attr_1', instance('ref-okved-ctrl'))"/> in dialog take from session scope: <xxforms:variable name="dlg-ref-general-instance-control" select="xxforms:get-session-attribute('test_attr_1')"/> but if i try use this instance in control in dialog: <xforms:select1 ref="$dlg-ref-general-instance-control/session-vars/selected-sf" appearance="minimal" incremental="true" id="dlg-ref-selField"> <xforms:itemset nodeset="$dlg-ref-general-instance-control/session-vars/search-fields/item"> <xforms:label ref="label"/> <xforms:value ref="value"/> </xforms:itemset> </xforms:select1> raising the erorr "Unable to set value of read-only instance."
|
On Thu, 2 Oct 2008 02:48:28 -0700 (PDT)
МОНАХ <[hidden email]> wrote: > > ok. > Another question: > how to send the instance from main page to dialog through session scope? > my example, in main page pun in session scope: why do you need that? any dialog defined in your .xhtml would access instances in the model without need of passing data...... greetings, rich -- 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 |
I have several reference books (alike tables with two columns). I want to write common dialog in which send instance with meta-data on necessary reference book (name of the xml-file with data, variable for navigation ...)
|
Administrator
|
On Thu, Oct 2, 2008 at 3:38 AM, МОНАХ <[hidden email]> wrote:
> I have several reference books (alike tables with two columns). I want to > write common dialog in which send instance with meta-data on necessary > reference book (name of the xml-file with data, variable for navigation ...) I assume you are using a separate window for the dialog; is that right? Have you considered using an xxforms:dialog? That would make passing data from the "form" to the "dialog" easier, and the dialog would be part of the same form. Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ 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 |
Administrator
|
In reply to this post by МОНАХ
On Thu, Oct 2, 2008 at 2:48 AM, МОНАХ <[hidden email]> wrote:
> raising the erorr "Unable to set value of read-only instance." Could you paste a full (or the top, say, 50 lines) of the stack trace for this. I am wondering what causes this. Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ 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 |
In reply to this post by Alessandro Vernet
> I assume you are using a separate window for the dialog; is that right?
> Have you considered using an xxforms:dialog? That would make passing > data from the "form" to the "dialog" easier, and the dialog would be > part of the same form. > > Alex good, you express yourself like a charm is just what I was trying to say in my last email ;-) -- 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 |