hi, i'm a new ops user, i wanted to create xform with input of type
xs:date,i've read somewhere that ops, render this control so we can input date with calendar window. the problem i encounter is that when i have 2 forms in the same view associated with 2 xforms instances, the rendering is not available. do i need to define only one model instance? how can i fix the problem otherwise? thank you for reacting. ************************************************************************* This message and any attachments (the "message") are confidential and intended solely for the addressee(s). Any unauthorised use or dissemination is prohibited. E-mails are susceptible to alteration. Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified. ************ Ce message et toutes les pieces jointes (ci-apres le "message") sont confidentiels et etablis a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite. Tout message electronique est susceptible d'alteration. La SOCIETE GENERALE et ses filiales declinent toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie. ************************************************************************* -- 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 |
How are you referencing the instances? You will need to reference them using
instance('someInstanceId')/element if you have more than one instance. When using this the element you reference is below the root i.e. <xforms:instance id="someInstanceId"> <instance> <element/> </instance> </xforms:instance> 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: [hidden email] [mailto:[hidden email]] >Sent: 29 March 2006 09:02 >To: [hidden email] >Subject: [ops-users] New user encounters problem. > >hi, i'm a new ops user, i wanted to create xform with input of type >xs:date,i've read somewhere that ops, render this control so we can input >date with calendar window. >the problem i encounter is that when i have 2 forms in the same view >associated with 2 xforms instances, the rendering is not available. >do i need to define only one model instance? >how can i fix the problem otherwise? >thank you for reacting. >************************************************************************* >This message and any attachments (the "message") are confidential and >intended solely for the addressee(s). >Any unauthorised use or dissemination is prohibited. E-mails are >susceptible to alteration. >Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates shall be >liable for the message if altered, changed or >falsified. > ************ >Ce message et toutes les pieces jointes (ci-apres le "message") sont >confidentiels et etablis a l'intention exclusive de ses >destinataires. Toute utilisation ou diffusion non autorisee est interdite. >Tout message electronique est susceptible d'alteration. >La SOCIETE GENERALE et ses filiales declinent toute responsabilite au titre >de ce message s'il a ete altere, deforme ou falsifie. >************************************************************************* -- 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 |
In reply to this post by anouar.hamman
i've already done this but still not working.
this is the first instance <xforms:instance id="main" xmlns=""> <main> <qualifier/> <name/> <type/> <id_application>59</id_application> <id_scope>16</id_scope> <id_input_doc>34</id_input_doc> <id_output_doc/> <xslt/> <start_date/> <!-- this is declared as xs:date so calendar will be displayed to input the value--> </main> </xforms:instance> the second one <xforms:instance id="XSLT" xmlns=""> <main> <name/> <type/> <start_date/><!-- this is declared as xs:date so calendar will be displayed to input the value but in this case it doesn't work and this is the bug--> <end_date/> <main/> </main> </xforms:instance> now below types declarations: <xforms:bind nodeset="instance('main')"> <xforms:bind nodeset="/main/name" required="true()" type="xs:string" constraint="string-length(.) le 255 and string-length(.) gt 0"/> <xforms:bind nodeset="/main/qualifier" required="true()" type="xs:string" constraint="string-length(.) le 3 and string-length(.) gt 0"/> <xforms:bind nodeset="/main/type" required="true()" type="xs:string" constraint="string-length(.) le 3 and string-length(.) gt 0"/> <xforms:bind nodeset="/main/start_date" required="true()" type="xs:date" /> </xforms:bind> <xforms:bind nodeset="instance('XSLT')"> <xforms:bind nodeset="/main/start_date" required="true()" type="xs:date" /> <xforms:bind nodeset="/main/end_date" required="true()" type="xs:date" /> </xforms:bind> ************************************************************************* This message and any attachments (the "message") are confidential and intended solely for the addressee(s). Any unauthorised use or dissemination is prohibited. E-mails are susceptible to alteration. Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified. ************ Ce message et toutes les pieces jointes (ci-apres le "message") sont confidentiels et etablis a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite. Tout message electronique est susceptible d'alteration. La SOCIETE GENERALE et ses filiales declinent toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie. ************************************************************************* -- 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 |
Hi,
When using instance('instanceID') you don't need to specify the root node, so remove /main from all the binds and it should work 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: [hidden email] [mailto:[hidden email]] >Sent: 30 March 2006 10:03 >To: [hidden email] >Subject: RE: [ops-users] New user encounters problem. > >i've already done this but still not working. >this is the first instance > <xforms:instance id="main" xmlns=""> > <main> > <qualifier/> > <name/> > <type/> > <id_application>59</id_application> > <id_scope>16</id_scope> > <id_input_doc>34</id_input_doc> > <id_output_doc/> > <xslt/> > <start_date/> <!-- this is declared as xs:date so >calendar will be displayed to input the value--> > </main> > </xforms:instance> >the second one ><xforms:instance id="XSLT" xmlns=""> > <main> > <name/> > <type/> > <start_date/><!-- this is declared as xs:date so calendar >will be displayed to input the value but in this case it doesn't work and >this is the bug--> > <end_date/> > <main/> > </main> > </xforms:instance> > >now below types declarations: ><xforms:bind nodeset="instance('main')"> > <xforms:bind nodeset="/main/name" required="true()" >type="xs:string" constraint="string-length(.) le 255 and string-length(.) >gt 0"/> > <xforms:bind nodeset="/main/qualifier" required="true()" >type="xs:string" constraint="string-length(.) le 3 and string-length(.) gt >0"/> > <xforms:bind nodeset="/main/type" required="true()" >type="xs:string" constraint="string-length(.) le 3 and string-length(.) gt >0"/> > <xforms:bind nodeset="/main/start_date" required="true()" >type="xs:date" /> > </xforms:bind> > ><xforms:bind nodeset="instance('XSLT')"> > <xforms:bind nodeset="/main/start_date" required="true()" >type="xs:date" /> > <xforms:bind nodeset="/main/end_date" required="true()" >type="xs:date" /> > </xforms:bind> > > >************************************************************************* >This message and any attachments (the "message") are confidential and >intended solely for the addressee(s). >Any unauthorised use or dissemination is prohibited. E-mails are >susceptible to alteration. >Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates shall be >liable for the message if altered, changed or >falsified. > ************ >Ce message et toutes les pieces jointes (ci-apres le "message") sont >confidentiels et etablis a l'intention exclusive de ses >destinataires. Toute utilisation ou diffusion non autorisee est interdite. >Tout message electronique est susceptible d'alteration. >La SOCIETE GENERALE et ses filiales declinent toute responsabilite au titre >de ce message s'il a ete altere, deforme ou falsifie. >************************************************************************* -- 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 |