Hey all!
I have a rather simple and straightforward question. How do I implement the date-control in my xform without using the formrunner functionality? I cant seem to get it working with a xs:date or xform:date bind for my input-control. What is the proper code for this? //Jimmy |
<xforms:bind ref="instance('my-instance')/path_to_date_element" type="xs:date" /> This will make date required <xforms:bind ref="instance('my-instance')/path_to_date_element" type="xform:date" /> This will make date optional <xforms:input ref="instance('my-instance')/path_to_date_element"> <xforms:label>Date</xforms:label> </xforms:input> Brian Steuhl Business Email: [hidden email] Home Office: 732-961-3187 Google Voice: 732-800-1286 (1BTM) From: Jimmy <[hidden email]> To: [hidden email] Sent: Wed, June 8, 2011 9:57:34 AM Subject: [ops-users] date-control Hey all! I have a rather simple and straightforward question. How do I implement the date-control in my xform without using the formrunner functionality? I cant seem to get it working with a xs:date or xform:date bind for my input-control. What is the proper code for this? //Jimmy -- View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/date-control-tp3582578p3582578.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 |
No luck..
To clarify; I haven't declared the formrunner namespace in my namespace declaration. Not sure wether that is required with this method. Here's my instance: <xforms:instance id="fr-form-instance"> <form xmlns=""> <typed-controls> <eventId/> </typed-controls> </form> </xforms:instance> ..binds: <xforms:bind ref="instance('fr-form-instance')/form/typed-controls"> <xforms:bind ref="eventId" type="xs:date" /> </xforms:bind> ..and the control: <xforms:group ref="typed-controls"> <xforms:input ref="eventId"> <xforms:label>Date</xforms:label> </xforms:input> </xforms:group> //Jimmy |
I do not use form runner as I code everything external and you can still do the same if you use form runner. Do not know why form runner uses a different format but just out of chance change this: <xforms:bind ref="instance('fr-form-instance')/form/typed-controls"> <xforms:bind ref="eventId" type="xs:date" /> </xforms:bind to this <xforms:bind ref="instance('fr-form-instance')/typed-controls"> <xforms:bind ref="eventId" type="xs:date" /> </xforms:bind In my external coding in Orbeon my bind would simply be: <xforms:bind ref="instance('fr-form-instance')/typed-controls/eventId" type="xs:date" /> and the control: <xforms:input ref="instance('fr-form-instance')/typed-controls/eventId"> <xforms:label>Date</xforms:label> </xforms:input> And you could replace the above with this for testing. You do have xs namespace defined correct? Brian Steuhl Business Email: [hidden email] Home Office: 732-961-3187 Google Voice: 732-800-1286 (1BTM) From: Jimmy <[hidden email]> To: [hidden email] Sent: Wed, June 8, 2011 12:25:46 PM Subject: [ops-users] Re: date-control No luck.. To clarify; I haven't declared the formrunner namespace in my namespace declaration. Not sure wether that is required with this method. Here's my instance: <xforms:instance id="fr-form-instance"> <form xmlns=""> <typed-controls> <eventId/> </typed-controls> </form> </xforms:instance> ..binds: <xforms:bind ref="instance('fr-form-instance')/form/typed-controls"> <xforms:bind ref="eventId" type="xs:date" /> </xforms:bind> ..and the control: <xforms:group ref="typed-controls"> <xforms:input ref="eventId"> <xforms:label>Date</xforms:label> </xforms:input> </xforms:group> //Jimmy -- View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/date-control-tp3582578p3582986.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 |
Cant' believe I didn't try it without 'form' in the path..
Thank's a bunch. Increadibly frustrating seeing I simplified the code and all my binds down to the bare minimum. Thanks again //Jimmy |
No problem. Keep my contact information handed. I am always looking for small side projects to assist with so if your company/business ever needs some assistance with Orbeon and/or Intalio keep me in mind. Glad I could help. Brian Steuhl Business Email: [hidden email] Home Office: 732-961-3187 Google Voice: 732-800-1286 (1BTM) From: Jimmy <[hidden email]> To: [hidden email] Sent: Wed, June 8, 2011 1:17:11 PM Subject: [ops-users] Re: Re: date-control Cant' believe I didn't try it without 'form' in the path.. Thank's a bunch. Increadibly frustrating seeing I simplified the code and all my binds down to the bare minimum. Thanks again //Jimmy -- View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/date-control-tp3582578p3583125.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 |
Free forum by Nabble | Edit this page |