Hi,
I am using the below submission syntax for saving instance data in an xml file. <xforms:submission id="save-to-file" method="put" action="abcde.xml" replace="instance" instance="instance_patientRecord"> <xforms:message ev:event="xforms-submit-error" level="modal"> An error occurred while saving! </xforms:message> </xforms:submission> This code does not create the file "abcde.xml". Also the event "xforms-submit-error" is not triggered. What can be the problem associated? How shall I save my instance data to a file? Thanks and Regards, somya -- 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 |
Somya Rajesh Agarwal schrieb:
> What can be the problem associated? How shall I save my instance data to a file? there were some recent posts on this list regarding this topic: http://orbeon-forms-ops-users.24843.n4.nabble.com/Deploying-Orbeon-Forms-in-Liferay-tp2994930p2995166.html http://orbeon-forms-ops-users.24843.n4.nabble.com/Deploying-Orbeon-Forms-in-Liferay-td2994930.html#a2996283 A way to write the instance data to a file could be the file serializer processor that's part of orbeon forms: http://www.orbeon.com/orbeon/doc/processors-serializers#file-serializer HTH florian -- 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 darrencruse
On 18.10.2010 17:05, darrencruse wrote:
> I forgot to mentioned the very first thing I'd done was just use an > IframePortlet in LifeRay pointed at Orbeon running separately. That > actually hadn't been awful but I just could never make it seamless - e.g. in > several of the browsers for the life of me I could't get it to hide the > iframe it wanted to leave these blank areas where a scrollbar would have > been (hard to describe basically it just looked odd and I couldn't seem to > fix it in certain browsers). I'd ended up feeling the iframe approach was a > hack and thought the portlet approach was the right one. Have you tried resizing iframe to fit contents? http://support.microsoft.com/kb/278469 I have similar solution in production for 2 years now and no problems so far. NB! Both scripts have to be run from the same domain. You can set up simple proxy, if this is not a case. Tambet -- 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 Somya Rajesh Agarwal
Somya,
It is simpler than that for the delete: in both cases, you can just have <xforms:delete ev:event="DOMActivate" nodeset="."/>. I attached the example with this additional change. Alex On Thu, Oct 21, 2010 at 12:06 AM, Somya Rajesh Agarwal <[hidden email]> wrote: > Hi Alex, > > Thank you for your reply. I made the changes suggested by you. The insert is now working fine :) > > However I tried similar changes on the delete trigger for deleting the prescription node. > 1. If I change the nodeset attribute from "/patient/visits/prescriptions" to "prescriptions" the delete trigger is not working at all. > 2. I could not see any change in the behavior of delete trigger on setting the context attribute to "." or context="instance('instance_patientRecord')" or removing it all together. > 3. On setting nodeset="/patient/visits/prescriptions" the previous problem persisits > > Please provide a solution for this. > > Thanks and Regards, > Somya > > -----Original Message----- > From: Alessandro Vernet [mailto:[hidden email]] > Sent: Thursday, October 21, 2010 3:25 AM > To: [hidden email] > Subject: [ops-users] Re: Issue on Working with nested <xforms:repeat> > > Somya, > > You were almost there. The only issue I noticed was that the prescription insert was always adding a new prescription to the last appointment, instead of the current appointment. For this, that button needs to be: > > <xforms:trigger appearance="minimal"> > <xforms:label>Add One</xforms:label> > <xforms:insert ev:event="DOMActivate" > nodeset="prescriptions" > at="1" position="before" > origin="instance('prescriptions-template')"/> > </xforms:trigger> > > I removed the "context" attribute, and notice how there is just nodeset="prescriptions". The current context is a <vistits>, since you are inside a <xforms:repeat nodeset="/patient/visits">, so just referring to nodeset="prescriptions" references the <prescriptions> element inside the current node. If there are cases where you can have zero prescriptions, then you still need to have context=".", otherwise the <xforms:insert> won't know where to do the insertion. > > For reference, I attached the full example with the above update. > > Alex > > > On Wed, Oct 20, 2010 at 12:19 AM, Somya Rajesh Agarwal <[hidden email]> wrote: >> Hi all, >> >> I need to have nested <xforms:repeat> control in my xform. >> >> For ex. As per the below template, the form should enable the multiple 'appointments' entries. Also for each 'appointment' multiple 'prescriptions' entry is required. >> >> <appointment> >> <date /> >> <diagnosis /> >> <prescription> >> <drug /> >> <noOfDays> >> <dosage> >> </prescription> >> </appointment> >> >> The outer repeat is working as expected but inner repeat on prescriptions is not working fine. >> >> Here is the problem: >> 1. Suppose I have an 'appointment' node in the beginning say 'app-a'. >> 2. Now I add 'app-b'. >> 3. Both 'app-a' and 'app-b' have one 'prescription' node each by default. >> 4. Now, when I add a 'prescription' node or delete a 'prescription' node in 'app-a', the 'prescription' node in 'app-b' get added/deleted. >> >> Kindly help me resolve this problem. Please find attached the code (index5.jsp) I am using. >> >> Would highly appreciate your help. >> >> P.S. In the orbeon architecture I have placed the file "index5.jsp" at >> WebContent/xforms-jsp/<new-folder> >> >> Thanks and Regards, >> Somya >> >> >> -- >> 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 > -- 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 20101020-nested-repeat.xhtml (10K) Download Attachment
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Hi Alex,
Thanks a lot for solving my queries. I would like to know the logic behind these code structures. Is there any source I can refer to? It's just out of curiosity so that I can learn more by myself. Somya -----Original Message----- From: Alessandro Vernet [mailto:[hidden email]] Sent: Friday, October 22, 2010 6:31 AM To: ops-users Subject: [ops-users] Re: Re: Issue on Working with nested <xforms:repeat> Somya, It is simpler than that for the delete: in both cases, you can just have <xforms:delete ev:event="DOMActivate" nodeset="."/>. I attached the example with this additional change. Alex On Thu, Oct 21, 2010 at 12:06 AM, Somya Rajesh Agarwal <[hidden email]> wrote: > Hi Alex, > > Thank you for your reply. I made the changes suggested by you. The > insert is now working fine :) > > However I tried similar changes on the delete trigger for deleting the prescription node. > 1. If I change the nodeset attribute from "/patient/visits/prescriptions" to "prescriptions" the delete trigger is not working at all. > 2. I could not see any change in the behavior of delete trigger on setting the context attribute to "." or context="instance('instance_patientRecord')" or removing it all together. > 3. On setting nodeset="/patient/visits/prescriptions" the previous > problem persisits > > Please provide a solution for this. > > Thanks and Regards, > Somya > > -----Original Message----- > From: Alessandro Vernet [mailto:[hidden email]] > Sent: Thursday, October 21, 2010 3:25 AM > To: [hidden email] > Subject: [ops-users] Re: Issue on Working with nested <xforms:repeat> > > Somya, > > You were almost there. The only issue I noticed was that the prescription insert was always adding a new prescription to the last appointment, instead of the current appointment. For this, that button needs to be: > > <xforms:trigger appearance="minimal"> > <xforms:label>Add One</xforms:label> > <xforms:insert ev:event="DOMActivate" > nodeset="prescriptions" > at="1" position="before" > origin="instance('prescriptions-template')"/> > </xforms:trigger> > > I removed the "context" attribute, and notice how there is just nodeset="prescriptions". The current context is a <vistits>, since you are inside a <xforms:repeat nodeset="/patient/visits">, so just referring to nodeset="prescriptions" references the <prescriptions> element inside the current node. If there are cases where you can have zero prescriptions, then you still need to have context=".", otherwise the <xforms:insert> won't know where to do the insertion. > > For reference, I attached the full example with the above update. > > Alex > > > On Wed, Oct 20, 2010 at 12:19 AM, Somya Rajesh Agarwal <[hidden email]> wrote: >> Hi all, >> >> I need to have nested <xforms:repeat> control in my xform. >> >> For ex. As per the below template, the form should enable the multiple 'appointments' entries. Also for each 'appointment' multiple 'prescriptions' entry is required. >> >> <appointment> >> <date /> >> <diagnosis /> >> <prescription> >> <drug /> >> <noOfDays> >> <dosage> >> </prescription> >> </appointment> >> >> The outer repeat is working as expected but inner repeat on prescriptions is not working fine. >> >> Here is the problem: >> 1. Suppose I have an 'appointment' node in the beginning say 'app-a'. >> 2. Now I add 'app-b'. >> 3. Both 'app-a' and 'app-b' have one 'prescription' node each by default. >> 4. Now, when I add a 'prescription' node or delete a 'prescription' node in 'app-a', the 'prescription' node in 'app-b' get added/deleted. >> >> Kindly help me resolve this problem. Please find attached the code (index5.jsp) I am using. >> >> Would highly appreciate your help. >> >> P.S. In the orbeon architecture I have placed the file "index5.jsp" >> at WebContent/xforms-jsp/<new-folder> >> >> Thanks and Regards, >> Somya >> >> >> -- >> 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 > -- 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 |
Administrator
|
A lot is covered here:
http://wiki.orbeon.com/forms/doc/developer-guide/xforms-repeat -Erik On Thu, Oct 21, 2010 at 9:56 PM, Somya Rajesh Agarwal <[hidden email]> wrote: > Hi Alex, > > Thanks a lot for solving my queries. > > I would like to know the logic behind these code structures. Is there any source I can refer to? It's just out of curiosity so that I can learn more by myself. > > Somya > > -----Original Message----- > From: Alessandro Vernet [mailto:[hidden email]] > Sent: Friday, October 22, 2010 6:31 AM > To: ops-users > Subject: [ops-users] Re: Re: Issue on Working with nested <xforms:repeat> > > Somya, > > It is simpler than that for the delete: in both cases, you can just have <xforms:delete ev:event="DOMActivate" nodeset="."/>. I attached the example with this additional change. > > Alex > > On Thu, Oct 21, 2010 at 12:06 AM, Somya Rajesh Agarwal <[hidden email]> wrote: >> Hi Alex, >> >> Thank you for your reply. I made the changes suggested by you. The >> insert is now working fine :) >> >> However I tried similar changes on the delete trigger for deleting the prescription node. >> 1. If I change the nodeset attribute from "/patient/visits/prescriptions" to "prescriptions" the delete trigger is not working at all. >> 2. I could not see any change in the behavior of delete trigger on setting the context attribute to "." or context="instance('instance_patientRecord')" or removing it all together. >> 3. On setting nodeset="/patient/visits/prescriptions" the previous >> problem persisits >> >> Please provide a solution for this. >> >> Thanks and Regards, >> Somya >> >> -----Original Message----- >> From: Alessandro Vernet [mailto:[hidden email]] >> Sent: Thursday, October 21, 2010 3:25 AM >> To: [hidden email] >> Subject: [ops-users] Re: Issue on Working with nested <xforms:repeat> >> >> Somya, >> >> You were almost there. The only issue I noticed was that the prescription insert was always adding a new prescription to the last appointment, instead of the current appointment. For this, that button needs to be: >> >> <xforms:trigger appearance="minimal"> >> <xforms:label>Add One</xforms:label> >> <xforms:insert ev:event="DOMActivate" >> nodeset="prescriptions" >> at="1" position="before" >> origin="instance('prescriptions-template')"/> >> </xforms:trigger> >> >> I removed the "context" attribute, and notice how there is just nodeset="prescriptions". The current context is a <vistits>, since you are inside a <xforms:repeat nodeset="/patient/visits">, so just referring to nodeset="prescriptions" references the <prescriptions> element inside the current node. If there are cases where you can have zero prescriptions, then you still need to have context=".", otherwise the <xforms:insert> won't know where to do the insertion. >> >> For reference, I attached the full example with the above update. >> >> Alex >> >> >> On Wed, Oct 20, 2010 at 12:19 AM, Somya Rajesh Agarwal <[hidden email]> wrote: >>> Hi all, >>> >>> I need to have nested <xforms:repeat> control in my xform. >>> >>> For ex. As per the below template, the form should enable the multiple 'appointments' entries. Also for each 'appointment' multiple 'prescriptions' entry is required. >>> >>> <appointment> >>> <date /> >>> <diagnosis /> >>> <prescription> >>> <drug /> >>> <noOfDays> >>> <dosage> >>> </prescription> >>> </appointment> >>> >>> The outer repeat is working as expected but inner repeat on prescriptions is not working fine. >>> >>> Here is the problem: >>> 1. Suppose I have an 'appointment' node in the beginning say 'app-a'. >>> 2. Now I add 'app-b'. >>> 3. Both 'app-a' and 'app-b' have one 'prescription' node each by default. >>> 4. Now, when I add a 'prescription' node or delete a 'prescription' node in 'app-a', the 'prescription' node in 'app-b' get added/deleted. >>> >>> Kindly help me resolve this problem. Please find attached the code (index5.jsp) I am using. >>> >>> Would highly appreciate your help. >>> >>> P.S. In the orbeon architecture I have placed the file "index5.jsp" >>> at WebContent/xforms-jsp/<new-folder> >>> >>> Thanks and Regards, >>> Somya >>> >>> >>> -- >>> 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 >> > > > > -- > 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 > > -- 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 |
Hi,
I am trying to use the calendar datepicker in my orbeon xform. But it is not working. I used the following statement to bind my node 'dateOfBirth' to date type - <xforms:bind nodeset="instance('instance_patientRecord')/patientRecords/patient/dateOfBirth" type="xs:date" id="date-type-bind"/> And then use the following input statement- <xforms:input bind="date-type-bind"> <xforms:label>Date Of Birth</xforms:label> </xforms:input> What is the problem with the above code? Thanks and Regards, Somya **************** CAUTION - Disclaimer ***************** This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. ***INFOSYS******** End of Disclaimer ********INFOSYS*** -- 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 |
Somya,
> I am trying to use the calendar datepicker in my orbeon xform. But it is not working. what's the exact problem? Do you get a "plain" input field without date picker, or no input field at all? > I used the following statement to bind my node 'dateOfBirth' to date type - > <xforms:bind nodeset="instance('instance_patientRecord')/patientRecords/patient/dateOfBirth" type="xs:date" id="date-type-bind"/> > And then use the following input statement- > <xforms:input bind="date-type-bind"> > <xforms:label>Date Of Birth</xforms:label> > </xforms:input> Does it work with <xforms:input ref="instance('instance_patientRecord')/patientRecords/patient/dateOfBirth"> <xforms:label>Date Of Birth</xforms:label> </xforms:input> ? florian -- 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 |
Hi Florian,
Thanks for your response. I used the following statement under the head section of my document to bind node 'dateOfBirth' to date type - <xforms:bind nodeset="instance('instance_patientRecord')/patientRecords/patient/dateOfBirth" type="xs:date" id="date-type-bind"/> Now, If I use the following syntax input field appears but without the date picker. <xforms:group ref="/patientRecords/patient"> <xforms:input ref="dateOfBirth"> <xforms:label>Date Of Birth</xforms:label> </xforms:input> </xforms:group> However, If I use the below syntax input field does not appear at all. <xforms:group ref="/patientRecords/patient"> <xforms:input bind="date-type-bind"> <xforms:label>Date Of Birth</xforms:label> </xforms:input> </xforms:group> Also I tried the syntax suggested by you (copied below). With this also input field does not appear. <xforms:group ref="/patientRecords/patient"> <xforms:input ref="instance('instance_patientRecord')/patientRecords/patient/dateOfBirth"> <xforms:label>Date Of Birth</xforms:label> </xforms:input> </xforms:group> Please find attached the code for reference. Thanks and Regards, Somya -----Original Message----- From: Florian Schmitt [mailto:[hidden email]] On Behalf Of Florian Schmitt Sent: Saturday, October 23, 2010 4:56 PM To: [hidden email] Subject: [ops-users] Re: Regarding date picker / calendar in xforms Somya, > I am trying to use the calendar datepicker in my orbeon xform. But it is not working. what's the exact problem? Do you get a "plain" input field without date picker, or no input field at all? > I used the following statement to bind my node 'dateOfBirth' to date type - > <xforms:bind > nodeset="instance('instance_patientRecord')/patientRecords/patient/dat > eOfBirth" type="xs:date" id="date-type-bind"/> > And then use the following input statement- > <xforms:input bind="date-type-bind"> > <xforms:label>Date Of Birth</xforms:label> > </xforms:input> Does it work with <xforms:input ref="instance('instance_patientRecord')/patientRecords/patient/dateOfBirth"> <xforms:label>Date Of Birth</xforms:label> </xforms:input> ? florian **************** CAUTION - Disclaimer ***************** This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. ***INFOSYS******** End of Disclaimer ********INFOSYS*** -- 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 index8.jsp (4K) Download Attachment |
In reply to this post by Somya Rajesh Agarwal
Hi Somya,
there's a problem with the nodeset XPath of the xforms:bind. It should be: <xforms:bind nodeset="instance('instance_patientRecord')/patient/dateOfBirth" type="xs:date" id="date-type-bind"/> without the root element "patientRecords". florian -- 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 |