Hello, I’m using Orbeon Form Builder,
and I have created a field and a combox.
With an action and service, the field's value
feed the list box. That works fine.
The problem is that when i have published the form,
i start to record datas with the Form Runner, the list
is well feeded, i click on the save and validate button but in the edit mode
i don't see the label of what i have selected.
And when i look into the database, i don't see the item value and the
label of what i have selected in the xml field of my record.
Can someone tell me why?
Here the code of my form.
|
Administrator
|
It is hard to see exactly what is happening. Could you record a video
of what you are seeing (e.g. with Jing - http://www.jingproject.com/) so we can better understand what it is? Alex On Thu, Mar 25, 2010 at 7:00 AM, youl <[hidden email]> wrote: > Hello, I’m using Orbeon Form Builder, and I have created a field and a > combox. With an action and service, the field's value feed the list box. > That works fine. The problem is that when i have published the form, i start > to record datas with the Form Runner, the list is well feeded, i click on > the save and validate button but in the edit mode i don't see the label of > what i have selected. And when i look into the database, i don't see the > item value and the label of what i have selected in the xml field of my > record. Can someone tell me why? Here the code of my form. Architecte > frontOfficeAREG_ORB architecteForm Dialogue architecte ADRESSE Code postal > Commune test > ________________________________ > View this message in context: Label of list box not stored in db. > 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 > > -- 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 |
Hi Alessandro thank u for your help.
I have make a video to explain the problem. problemeWithLabel.swf Here is a piece of my source code. I hope, i'm clear. :/ <xforms:model id="fr-form-model"> <xforms:instance id="fr-form-instance"> <form> <section-1> <control-1/> <control-2/> </section-1> </form> </xforms:instance> <xforms:bind id="fr-form-binds" nodeset="instance('fr-form-instance')"> <xforms:bind id="section-1-bind" nodeset="section-1"> <xforms:bind id="control-1-bind" nodeset="control-1" name="control-1"/> <xforms:bind id="control-2-bind" nodeset="control-2" name="control-2"/> </xforms:bind> </xforms:bind> <xforms:instance id="fr-form-metadata" xxforms:readonly="true"> <metadata> <application-name>SERVICE</application-name> <form-name>formTestService</form-name> <title xml:lang="en">Untitled Form</title> <description xml:lang="en"/> <author/> <logo mediatype="" filename="" size=""/> </metadata> </xforms:instance> <xforms:instance id="fr-form-attachments"> <attachments> <css mediatype="text/css" filename="" size=""/> <pdf mediatype="application/pdf" filename="" size=""/> </attachments> </xforms:instance> <xforms:instance id="fr-form-resources" xxforms:readonly="false"> <resources> <resource xml:lang="en"> <control-1> <label>Département</label> <hint/> <help/> <alert/> <item> <label> </label> <value> </value> </item> </control-1> <control-2> <label>Commune</label> <hint/> <help/> <alert/> <item> <label> </label> <value> </value> </item> </control-2> <section-1> <label>Untitled Section</label> <help/> </section-1> </resource> </resources> </xforms:instance> <xforms:instance id="fr-service-request-instance" xxforms:exclude-result-prefixes="#all"> <request/> </xforms:instance> <xforms:instance id="fr-service-response-instance" xxforms:exclude-result-prefixes="#all"> <response/> </xforms:instance> <xforms:instance id="serviceChargementDepartement-instance" class="fr-service" xxforms:exclude-result-prefixes="#all"> <bodyy><departements/></bodyy> </xforms:instance> <xforms:submission id="serviceChargementDepartement-submission" class="fr-service" ref="instance('fr-service-request-instance')" resource="http://localhost:8090/RestWebServiceAREG/serviceArchitecte/getDepartement" method="get" serialization="application/xml" mediatype="application/xml" replace="instance" instance="fr-service-response-instance"/> <xforms:instance id="serviceChargementCommunePourDepartement-instance" class="fr-service" xxforms:exclude-result-prefixes="#all"> <bodyy><communes/></bodyy> </xforms:instance> <xforms:submission id="serviceChargementCommunePourDepartement-submission" class="fr-service" ref="instance('fr-service-request-instance')" resource="http://localhost:8090/RestWebServiceAREG/serviceArchitecte/getCommuneByDepartement/{xxforms:instance('fr-form-instance')/section-1/control-1}" method="get" serialization="application/xml" mediatype="application/xml" replace="instance" instance="fr-service-response-instance"/> <xforms:action id="onChangeDepartement-binding"> <xforms:action ev:event="xforms-value-changed xforms-enabled" ev:observer="control-1-control"> <xforms:send submission="serviceChargementCommunePourDepartement-submission"/> </xforms:action> <xforms:action ev:event="xforms-submit" ev:observer="serviceChargementCommunePourDepartement-submission"> <xxforms:variable name="request-instance-name" select="'serviceChargementCommunePourDepartement-instance'" as="xs:string"/> <xforms:insert nodeset="instance('fr-service-request-instance')" origin="saxon:parse(instance($request-instance-name))"/> <xforms:action context="instance('fr-service-request-instance')"> </xforms:action> </xforms:action> <xforms:action ev:event="xforms-submit-done" ev:observer="serviceChargementCommunePourDepartement-submission" context="instance('fr-service-response-instance')"> <xforms:action class="fr-itemset-action"> <xxforms:variable name="control-name" select="'control-2'" as="xs:string"/> <xxforms:variable name="response-items" select="/communes/commune" as="node()*"/> <xxforms:variable name="control-resources" model="fr-resources-model" select="$fr-form-resources/*[name() = $control-name]"/> <xforms:delete nodeset="$control-resources/item"/> <xforms:action xxforms:iterate="$response-items"> <xxforms:variable name="item-label" select="libelle" as="xs:string"/> <xxforms:variable name="item-value" select="codeInsee" as="xs:string"/> <xforms:insert nodeset="$control-resources/*" origin="xxforms:element('item', (xxforms:element('label', xs:string($item-label)), xxforms:element('value', xs:string($item-value))))"/> </xforms:action> </xforms:action> </xforms:action> </xforms:action> <xforms:action id="onLoadDepartement-binding"> <xforms:action ev:event="xforms-ready" ev:observer="fr-form-model"> <xforms:send submission="serviceChargementDepartement-submission"/> </xforms:action> <xforms:action ev:event="xforms-submit" ev:observer="serviceChargementDepartement-submission"> <xxforms:variable name="request-instance-name" select="'serviceChargementDepartement-instance'" as="xs:string"/> <xforms:insert nodeset="instance('fr-service-request-instance')" origin="saxon:parse(instance($request-instance-name))"/> <xforms:action context="instance('fr-service-request-instance')"> </xforms:action> </xforms:action> <xforms:action ev:event="xforms-submit-done" ev:observer="serviceChargementDepartement-submission" context="instance('fr-service-response-instance')"> <xforms:action class="fr-set-control-value-action"> <xxforms:variable name="control-name" select="'control-2'" as="xs:string"/> <xxforms:variable name="control-value" select="""" as="xs:string"/> <xforms:setvalue ref="instance('fr-form-instance')/*/*[name() = $control-name]" value="$control-value"/> </xforms:action> <xforms:action class="fr-itemset-action"> <xxforms:variable name="control-name" select="'control-1'" as="xs:string"/> <xxforms:variable name="response-items" select="/departements/departement" as="node()*"/> <xxforms:variable name="control-resources" model="fr-resources-model" select="$fr-form-resources/*[name() = $control-name]"/> <xforms:delete nodeset="$control-resources/item"/> <xforms:action xxforms:iterate="$response-items"> <xxforms:variable name="item-label" select="libelle" as="xs:string"/> <xxforms:variable name="item-value" select="codeDep" as="xs:string"/> <xforms:insert nodeset="$control-resources/*" origin="xxforms:element('item', (xxforms:element('label', xs:string($item-label)), xxforms:element('value', xs:string($item-value))))"/> </xforms:action> </xforms:action> </xforms:action> </xforms:action> </xforms:model> </xhtml:head> <xhtml:bodyy> <fr:view> <xforms:label ref="instance('fr-form-metadata')/title"/> <fr:bodyy> <fr:section id="section-1-section" bind="section-1-bind"> <xforms:label ref="$form-resources/section-1/label"/> <xforms:help ref="$form-resources/section-1/help"/> <fr:grid columns="2"> <xhtml:tr> <xhtml:td> <xforms:select1 appearance="minimal" id="control-1-control" bind="control-1-bind"> <xforms:label ref="$form-resources/control-1/label"/> <xforms:hint ref="$form-resources/control-1/hint"/> <xforms:help ref="$form-resources/control-1/help"/> <xforms:alert ref="$fr-resources/detail/labels/alert"/> <xforms:itemset nodeset="$form-resources/control-1/item"> <xforms:label ref="label"/> <xforms:value ref="value"/> </xforms:itemset> </xforms:select1> </xhtml:td> <xhtml:td> <xforms:select1 appearance="minimal" id="control-2-control" bind="control-2-bind"> <xforms:label ref="$form-resources/control-2/label"/> <xforms:hint ref="$form-resources/control-2/hint"/> <xforms:help ref="$form-resources/control-2/help"/> <xforms:alert ref="$fr-resources/detail/labels/alert"/> <xforms:itemset nodeset="$form-resources/control-2/item"> <xforms:label ref="label"/> <xforms:value ref="value"/> </xforms:itemset> </xforms:select1> </xhtml:td> </xhtml:tr> </fr:grid> </fr:section> |
In reply to this post by Alessandro Vernet
up
|
Administrator
|
In reply to this post by youl
Hi,
I am not sure what software you used to record that video, but you should get another one, like Jing ;). The text in the video is barely readable. I still don't see what could be happening and would need a reproducible test case to investigate this further. Since this calls services and the such, it will most likely take too much time to investigate in the meager amount of effort we can dedicate to answering questions on the community list. I hate doing this here, but I'll have to recommend you to consider Development Support (http://www.orbeon.com/support-services/development). Alex On Fri, Mar 26, 2010 at 7:49 AM, youl <[hidden email]> wrote: > > Hi Alessandro for your help. > I have make a video to explain the problem. > http://n4.nabble.com/file/n1692318/problemeWithLabel.swf > problemeWithLabel.swf > > Here is a piece of my source code. > I hope, i'm clear. :/ > > <xforms:model id="fr-form-model"> > > > <xforms:instance id="fr-form-instance"> > <form> > <section-1> > <control-1/> > <control-2/> > > </section-1> > </form> > </xforms:instance> > > > <xforms:bind id="fr-form-binds" > nodeset="instance('fr-form-instance')"> > <xforms:bind id="section-1-bind" nodeset="section-1"> > <xforms:bind id="control-1-bind" nodeset="control-1" > name="control-1"/> > <xforms:bind id="control-2-bind" nodeset="control-2" > name="control-2"/> > > </xforms:bind> > </xforms:bind> > > > <xforms:instance id="fr-form-metadata" xxforms:readonly="true"> > <metadata> > <application-name>SERVICE</application-name> > <form-name>formTestService</form-name> > <title xml:lang="en">Untitled Form</title> > <description xml:lang="en"/> > <author/> > <logo mediatype="" filename="" size=""/> > </metadata> > </xforms:instance> > > > <xforms:instance id="fr-form-attachments"> > <attachments> > <css mediatype="text/css" filename="" size=""/> > <pdf mediatype="application/pdf" filename="" size=""/> > </attachments> > </xforms:instance> > > > > <xforms:instance id="fr-form-resources" > xxforms:readonly="false"> > <resources> > <resource xml:lang="en"> > <control-1> > <label>Département</label> > <hint/> > <help/> > <alert/> > <item> > <label> </label> > <value> </value> > </item> > </control-1> > <control-2> > <label>Commune</label> > <hint/> > <help/> > <alert/> > <item> > <label> </label> > <value> </value> > </item> > </control-2> > <section-1> > <label>Untitled Section</label> > <help/> > </section-1> > > </resource> > </resources> > </xforms:instance> > > > <xforms:instance id="fr-service-request-instance" > xxforms:exclude-result-prefixes="#all"> > <request/> > </xforms:instance> > > <xforms:instance id="fr-service-response-instance" > xxforms:exclude-result-prefixes="#all"> > <response/> > </xforms:instance> > <xforms:instance id="serviceChargementDepartement-instance" > class="fr-service" > xxforms:exclude-result-prefixes="#all"> > <bodyy><departements/></bodyy> > </xforms:instance> > <xforms:submission id="serviceChargementDepartement-submission" > class="fr-service" > ref="instance('fr-service-request-instance')" > > resource="http://localhost:8090/RestWebServiceAREG/serviceArchitecte/getDepartement" > method="get" > serialization="application/xml" > mediatype="application/xml" > replace="instance" > instance="fr-service-response-instance"/> > <xforms:instance > id="serviceChargementCommunePourDepartement-instance" class="fr-service" > xxforms:exclude-result-prefixes="#all"> > <bodyy><communes/></bodyy> > </xforms:instance> > <xforms:submission > id="serviceChargementCommunePourDepartement-submission" class="fr-service" > ref="instance('fr-service-request-instance')" > > resource="http://localhost:8090/RestWebServiceAREG/serviceArchitecte/getCommuneByDepartement/{xxforms:instance('fr-form-instance')/section-1/control-1}" > method="get" > serialization="application/xml" > mediatype="application/xml" > replace="instance" > instance="fr-service-response-instance"/> > <xforms:action id="onChangeDepartement-binding"> > > <xforms:action ev:event="xforms-value-changed > xforms-enabled" ev:observer="control-1-control"> > > <xforms:send > submission="serviceChargementCommunePourDepartement-submission"/> > </xforms:action> > > <xforms:action ev:event="xforms-submit" > > ev:observer="serviceChargementCommunePourDepartement-submission"> > > <xxforms:variable name="request-instance-name" > > select="'serviceChargementCommunePourDepartement-instance'" > as="xs:string"/> > > <xforms:insert > nodeset="instance('fr-service-request-instance')" > > origin="saxon:parse(instance($request-instance-name))"/> > > > <xforms:action > context="instance('fr-service-request-instance')"> > > > </xforms:action> > </xforms:action> > > <xforms:action ev:event="xforms-submit-done" > > ev:observer="serviceChargementCommunePourDepartement-submission" > > context="instance('fr-service-response-instance')"> > <xforms:action class="fr-itemset-action"> > > <xxforms:variable name="control-name" > select="'control-2'" as="xs:string"/> > <xxforms:variable name="response-items" > select="/communes/commune" as="node()*"/> > > <xxforms:variable name="control-resources" > model="fr-resources-model" > > select="$fr-form-resources/*[name() = $control-name]"/> > <xforms:delete nodeset="$control-resources/item"/> > <xforms:action xxforms:iterate="$response-items"> > <xxforms:variable name="item-label" > select="libelle" as="xs:string"/> > <xxforms:variable name="item-value" > select="codeInsee" as="xs:string"/> > <xforms:insert nodeset="$control-resources/*" > origin="xxforms:element('item', > (xxforms:element('label', xs:string($item-label)), xxforms:element('value', > xs:string($item-value))))"/> > </xforms:action> > </xforms:action> > > </xforms:action> > </xforms:action> > <xforms:action id="onLoadDepartement-binding"> > > <xforms:action ev:event="xforms-ready" > ev:observer="fr-form-model"> > > <xforms:send > submission="serviceChargementDepartement-submission"/> > </xforms:action> > > <xforms:action ev:event="xforms-submit" > ev:observer="serviceChargementDepartement-submission"> > > <xxforms:variable name="request-instance-name" > select="'serviceChargementDepartement-instance'" > as="xs:string"/> > > <xforms:insert > nodeset="instance('fr-service-request-instance')" > > origin="saxon:parse(instance($request-instance-name))"/> > > > <xforms:action > context="instance('fr-service-request-instance')"> > > </xforms:action> > </xforms:action> > > <xforms:action ev:event="xforms-submit-done" > > ev:observer="serviceChargementDepartement-submission" > > context="instance('fr-service-response-instance')"> > <xforms:action class="fr-set-control-value-action"> > > <xxforms:variable name="control-name" > select="'control-2'" as="xs:string"/> > <xxforms:variable name="control-value" > select="""" as="xs:string"/> > > <xforms:setvalue > ref="instance('fr-form-instance')/*/*[name() = $control-name]" > value="$control-value"/> > </xforms:action> > <xforms:action class="fr-itemset-action"> > > <xxforms:variable name="control-name" > select="'control-1'" as="xs:string"/> > <xxforms:variable name="response-items" > select="/departements/departement" as="node()*"/> > > <xxforms:variable name="control-resources" > model="fr-resources-model" > > select="$fr-form-resources/*[name() = $control-name]"/> > <xforms:delete nodeset="$control-resources/item"/> > <xforms:action xxforms:iterate="$response-items"> > <xxforms:variable name="item-label" > select="libelle" as="xs:string"/> > <xxforms:variable name="item-value" > select="codeDep" as="xs:string"/> > <xforms:insert nodeset="$control-resources/*" > origin="xxforms:element('item', > (xxforms:element('label', xs:string($item-label)), xxforms:element('value', > xs:string($item-value))))"/> > </xforms:action> > </xforms:action> > > </xforms:action> > </xforms:action> > > > > </xforms:model> > </xhtml:head> > <xhtml:bodyy> > <fr:view> > <xforms:label ref="instance('fr-form-metadata')/title"/> > <fr:bodyy> > <fr:section id="section-1-section" bind="section-1-bind"> > <xforms:label ref="$form-resources/section-1/label"/> > <xforms:help ref="$form-resources/section-1/help"/> > <fr:grid columns="2"> > <xhtml:tr> > <xhtml:td> > <xforms:select1 appearance="minimal" > id="control-1-control" bind="control-1-bind"> > <xforms:label > ref="$form-resources/control-1/label"/> > <xforms:hint > ref="$form-resources/control-1/hint"/> > <xforms:help > ref="$form-resources/control-1/help"/> > <xforms:alert > ref="$fr-resources/detail/labels/alert"/> > <xforms:itemset > nodeset="$form-resources/control-1/item"> > <xforms:label ref="label"/> > <xforms:value ref="value"/> > </xforms:itemset> > </xforms:select1> > > </xhtml:td> > <xhtml:td> > <xforms:select1 appearance="minimal" > id="control-2-control" bind="control-2-bind"> > <xforms:label > ref="$form-resources/control-2/label"/> > <xforms:hint > ref="$form-resources/control-2/hint"/> > <xforms:help > ref="$form-resources/control-2/help"/> > <xforms:alert > ref="$fr-resources/detail/labels/alert"/> > <xforms:itemset > nodeset="$form-resources/control-2/item"> > <xforms:label ref="label"/> > <xforms:value ref="value"/> > </xforms:itemset> > </xforms:select1> > </xhtml:td> > </xhtml:tr> > </fr:grid> > </fr:section> > -- > View this message in context: http://n4.nabble.com/Label-of-list-box-not-stored-in-db-tp1690667p1692318.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 > > -- 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 |