Hi All, In my form I am using MySql to populate a drop down box, in the same fashion as the sql address book example . <xforms:instance id="Global-LocationNameDB"> <All xmlns=""></All> </xforms:instance> <xforms:submission id="getGlobalLocationName" ref="instance('Global-LocationNameDB')" action="getLocationNameDB" method="post" replace="instance" instance="Global-LocationNameDB"> <xforms:message ev:event="xforms-submit-error">An error occurred while retrieving data!</xforms:message> </xforms:submission> The data gets populated in this fashion <All> <GlobalLocation> <G_L_Name>UK</G_L_Name> </GlobalLocation> <GlobalLocation> <G_L_Name>US</G_L_Name> </GlobalLocation> <GlobalLocation> <G_L_Name>France</G_L_Name> </GlobalLocation> </All> The output is a column containing names from the database table. Which is used to populate a drop down box. While submitting the form user uses data from this form. and adds a new name in the database When the user submits the form, I am saving the data in an XML file and displaying the data he entered in the page. The problem is while showing the data back to the user I call the Submission of the above instance again.(to populate the drop down box with the new location entered by the user). But calling it again gives me the following exception. XForms - submission - xforms-submit-error throwable: org.orbeon.oxf.common.OXFException: xforms:submission: instance to submit does not satisfy valid and/or required model item properties. Although in the submission pattern replace="instance" has been used but it seems that the form is expecting an blank instance. I hope I am able explain my problem. Kindly let me know if any clarification is required. Thanks in advance. |
Administrator
|
The error says that your instance is invalid. I suspect it's not
lying ;-) If you turn on XForms logging, you will have more details about what was invalid in the instance. Note that this will also catch required- but-empty nodes. http://www.orbeon.com/ops/doc/reference-xforms-2#xforms-logging -Erik On Apr 18, 2008, at 8:10 AM, adev wrote: > > > Hi All, > > In my form I am using MySql to populate a drop down box, in the same > fashion > as the sql address book example . > > > <xforms:instance id="Global-LocationNameDB"> > <All xmlns=""></All> > </xforms:instance> > > <xforms:submission id="getGlobalLocationName" > ref="instance('Global-LocationNameDB')" action="getLocationNameDB" > method="post" replace="instance" instance="Global-LocationNameDB"> > <xforms:message ev:event="xforms-submit-error">An error occurred > while > retrieving > data!</xforms:message> > </xforms:submission> > > The data gets populated in this fashion > <All> > <GlobalLocation> > <G_L_Name>UK</G_L_Name> > </GlobalLocation> > <GlobalLocation> > <G_L_Name>US</G_L_Name> > </GlobalLocation> > <GlobalLocation> > <G_L_Name>France</G_L_Name> > </GlobalLocation> > </All> > > > The output is a column containing names from the database table. > Which is > used to populate a drop down box. While submitting the form user > uses data > from this form. and adds a new name in the database > > When the user submits the form, I am saving the data in an XML file > and > displaying the data he entered in the page. > > The problem is while showing the data back to the user I call the > Submission > of the above instance again.(to populate the drop down box with the > new > location entered by the user). > > But calling it again gives me the following exception. > > XForms - submission - xforms-submit-error throwable: > org.orbeon.oxf.common.OXFException: xforms:submission: instance to > submit > does not satisfy valid and/or required model item properties. > > Although in the submission pattern replace="instance" has been used > but it > seems that the form is expecting an blank instance. > > I hope I am able explain my problem. Kindly let me know if any > clarification > is required. > > Thanks in advance. > -- > View this message in context: http://www.nabble.com/Xform-submission-replace-instance-not-working-tp16763486p16763486.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 |
Hi Eric,
I do agree to it that the error is not lying.... But the instance worked for me for when I added the instance for the first time. its just that when i am re-loading the instance after the user has added something to it it is not able to respond. The Instance has changed from <xforms:instance id="Global-LocationNameDB"> <All xmlns=""></All> </xforms:instance> To this <All> <GlobalLocation> <G_L_Name>UK</G_L_Name> </GlobalLocation> <GlobalLocation> <G_L_Name>US</G_L_Name> </GlobalLocation> <GlobalLocation> <G_L_Name>France</G_L_Name> </GlobalLocation> </All> Now when the user has added a new name in the location and in the submission I want submission to replace the instance with what is there in the new instance (including the newly added name) it is not able to replace it, rather it gives me an error org.orbeon.oxf.common.OXFException: xforms:submission: instance to submit does not satisfy valid and/or required model item properties. It seems that the form is expecting the same instance as: <xforms:instance id="Global-LocationNameDB"> <All xmlns=""></All> </xforms:instance> where as I want it to replace the instance with new Instance (which contains the newly added name). Is it a limitation of Orbeon's Xform, or am I doing doing something, else is ther a work around for the same. Its urgent... The whole processing of my application is stuck b'coz of that.
|
Administrator
|
No, it's not a limitation of Orbeon Forms. And no, Orbeon Forms is not
expecting a particular format for your instance. It may be a bug in Orbeon Forms, or in your XForms document, but now we have to figure out which! As I said, first thing to do is turn on XForms logging, and see what's really going on: http://www.orbeon.com/ops/doc/reference-xforms-2#xforms-logging -Erik On Apr 19, 2008, at 1:32 PM, adev wrote: > > Hi Eric, > > I do agree to it that the error is not lying.... > But the instance worked for me for when I added the instance for the > first > time. its just that when i am re-loading the instance after the user > has > added something to it it is not able to respond. > > The Instance has changed from > <xforms:instance id="Global-LocationNameDB"> > <All xmlns=""></All> > </xforms:instance> > > To this > > <All> > <GlobalLocation> > <G_L_Name>UK</G_L_Name> > </GlobalLocation> > <GlobalLocation> > <G_L_Name>US</G_L_Name> > </GlobalLocation> > <GlobalLocation> > <G_L_Name>France</G_L_Name> > </GlobalLocation> > </All> > > Now when the user has added a new name in the location and in the > submission > I want submission to replace the instance with what is there in the > new > instance (including the newly added name) it is not able to replace > it, > rather it gives me an error > > org.orbeon.oxf.common.OXFException: xforms:submission: instance to > submit > does not satisfy valid and/or required model item properties. > > It seems that the form is expecting the same instance as: > > <xforms:instance id="Global-LocationNameDB"> > <All xmlns=""></All> > </xforms:instance> > > where as I want it to replace the instance with new Instance (which > contains > the newly added name). > > Is it a limitation of Orbeon's Xform, or am I doing doing something, > else is > ther a work around for the same. > Its urgent... The whole processing of my application is stuck b'coz > of that. > > > Erik Bruchez wrote: >> >> The error says that your instance is invalid. I suspect it's not >> lying ;-) >> >> If you turn on XForms logging, you will have more details about what >> was invalid in the instance. Note that this will also catch required- >> but-empty nodes. >> >> http://www.orbeon.com/ops/doc/reference-xforms-2#xforms-logging >> >> -Erik >> >> On Apr 18, 2008, at 8:10 AM, adev wrote: >>> >>> >>> Hi All, >>> >>> In my form I am using MySql to populate a drop down box, in the same >>> fashion >>> as the sql address book example . >>> >>> >>> <xforms:instance id="Global-LocationNameDB"> >>> <All xmlns=""></All> >>> </xforms:instance> >>> >>> <xforms:submission id="getGlobalLocationName" >>> ref="instance('Global-LocationNameDB')" action="getLocationNameDB" >>> method="post" replace="instance" instance="Global-LocationNameDB"> >>> <xforms:message ev:event="xforms-submit-error">An error occurred >>> while >>> retrieving >>> data!</xforms:message> >>> </xforms:submission> >>> >>> The data gets populated in this fashion >>> <All> >>> <GlobalLocation> >>> <G_L_Name>UK</G_L_Name> >>> </GlobalLocation> >>> <GlobalLocation> >>> <G_L_Name>US</G_L_Name> >>> </GlobalLocation> >>> <GlobalLocation> >>> <G_L_Name>France</G_L_Name> >>> </GlobalLocation> >>> </All> >>> >>> >>> The output is a column containing names from the database table. >>> Which is >>> used to populate a drop down box. While submitting the form user >>> uses data >>> from this form. and adds a new name in the database >>> >>> When the user submits the form, I am saving the data in an XML file >>> and >>> displaying the data he entered in the page. >>> >>> The problem is while showing the data back to the user I call the >>> Submission >>> of the above instance again.(to populate the drop down box with the >>> new >>> location entered by the user). >>> >>> But calling it again gives me the following exception. >>> >>> XForms - submission - xforms-submit-error throwable: >>> org.orbeon.oxf.common.OXFException: xforms:submission: instance to >>> submit >>> does not satisfy valid and/or required model item properties. >>> >>> Although in the submission pattern replace="instance" has been used >>> but it >>> seems that the form is expecting an blank instance. >>> >>> I hope I am able explain my problem. Kindly let me know if any >>> clarification >>> is required. >>> >>> Thanks in advance. 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 |
Hi Eric,
As suggested, I enabled the log for the xform. It seems that the XPL is expecting a particular format of Instance only... The error is logged as 2008-04-20 16:37:20,052 http-8080-Processor25 DEBUG processor.XFormsServer null - XForms - submission - found invalid element: <GlobalLocation> [...]</GlobalLocation> 2008-04-20 16:37:20,052 http-8080-Processor25 DEBUG processor.XFormsServer null - XForms - submission - found invalid element: <GlobalLocation> UK</GlobalLocation> 2008-04-20 16:37:20,052 http-8080-Processor25 DEBUG processor.XFormsServer null - XForms - submission - found invalid element: <GlobalLocation> [...]</GlobalLocation> 2008-04-20 16:37:20,052 http-8080-Processor25 DEBUG processor.XFormsServer null - XForms - submission - found invalid element: <GlobalLocation> US</GlobalLocation>. Also when I tried to replace my initial instance from <xforms:instance id="Global-LocationNameDB"> <All xmlns=""></All> </xforms:instance> To <xforms:instance id="Global-LocationNameDB"> <dummy/> </xforms:instance> It could not submit the the form first time itself. and logs 2008-04-20 17:35:09,077 http-8080-Processor20 DEBUG processor.XFormsServer null - XForms - submission - found invalid element: <dummy></dummy> Since my submission form is this <xforms:submission id="getGlobalLocationName" ref="instance('Global-LocationNameDB')" action="getLocationNameDB" method="post" replace="instance" instance="Global-LocationNameDB"> <xforms:message ev:event="xforms-submit-error">An error occurred </xforms:message> </xforms:submission> So the submission should be done irrespective of what is present in the Instance. Is my thinking right? or am I still missing something and is there a work around for that. Thanks a lot for your support.
|
Administrator
|
On Sun, Apr 20, 2008 at 5:31 AM, adev <[hidden email]> wrote:
> It seems that the XPL is expecting a particular format of Instance only... > > The error is logged as > 2008-04-20 16:37:20,052 http-8080-Processor25 DEBUG processor.XFormsServer > null - XForms - submission - found invalid element: <GlobalLocation> > [...]</GlobalLocation> > 2008-04-20 16:37:20,052 http-8080-Processor25 DEBUG processor.XFormsServer > null - XForms - submission - found invalid element: <GlobalLocation> > UK</GlobalLocation> > 2008-04-20 16:37:20,052 http-8080-Processor25 DEBUG processor.XFormsServer > null - XForms - submission - found invalid element: <GlobalLocation> > [...]</GlobalLocation> > 2008-04-20 16:37:20,052 http-8080-Processor25 DEBUG processor.XFormsServer > null - XForms - submission - found invalid element: <GlobalLocation> > US</GlobalLocation>. happens before the submission is done (and hence before your XPL is called). If you have a validation error, you should have either a schema specified in the XForms document, or some binds that make the instance invalid, right? 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 adev
Hi,
Can anybody help me out in this as this is very urgent to me, I Have two portlets is there any way so that ican send data from one portlet to other . Thanks in advance, K Gopikrishna Reddy This e-mail (and any attachments), is confidential and may be privileged. It may be read, copied and used only by intended recipients. Unauthorized access to this e-mail (or attachments) and disclosure or copying of its contents or any action taken in reliance on it is unlawful. Unintended recipients must notify the sender immediately by e-mail/phone & delete it from their system without making any copies or disclosing it to a third person. -- 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 winmail.dat (4K) Download Attachment |
Administrator
|
Orbeon Forms does not have particular support for inter-portlet
communication. You may try this in Java, depending on your portal's support for this. Some people have also had success using JavaScript on the client. -Erik On Apr 23, 2008, at 5:12 AM, Reddy, Gopikrishna wrote: > Hi, > Can anybody help me out in this as this is very urgent to me, > I Have two portlets is there any way so that ican send data from one > portlet to other . > > > Thanks in advance, > K Gopikrishna Reddy -- 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 |
In reply to this post by adev
Hi,
Iam new to orbeon can anybody help me out in this Iam subtracting two input fields the output iam getting as exponential value but i need the output as a number Iam giving the code as follows <xforms:setvalue ref="instance('main-instance')//tax1035mixedmoneytxnamt" value="if(instance('main-instance')//tax1035mixedmoney='Y') then (instance('main-instance')//tax1035grsamt) - (instance('main-instance')//tax1035prcdamt) else ''"/> Thanks and Regards, K Gopikrishna Reddy This e-mail (and any attachments), is confidential and may be privileged. It may be read, copied and used only by intended recipients. Unauthorized access to this e-mail (or attachments) and disclosure or copying of its contents or any action taken in reliance on it is unlawful. Unintended recipients must notify the sender immediately by e-mail/phone & delete it from their system without making any copies or disclosing it to a third person. -- 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 winmail.dat (5K) Download Attachment |
Hi Gopikrishna,
It does look correct. If you also attached an actual instance, we could run it in the xpath sandbox. Regards, Hank On May 13, 2008, at 12:23 AM, Reddy, Gopikrishna wrote: > Hi, > Iam new to orbeon can anybody help me out in this > > Iam subtracting two input fields the output iam getting as > exponential value but i need the output as a number > Iam giving the code as follows > > <xforms:setvalue ref="instance('main-instance')// > tax1035mixedmoneytxnamt" value="if(instance('main-instance')// > tax1035mixedmoney='Y') then (instance('main-instance')// > tax1035grsamt) - (instance('main-instance')//tax1035prcdamt) else > ''"/> > > > Thanks and Regards, > K Gopikrishna Reddy > > > This e-mail (and any attachments), is confidential and may be > privileged. It may be read, copied and used only > by intended recipients. Unauthorized access to this e-mail (or > attachments) and disclosure or copying of its > contents or any action taken in reliance on it is unlawful. > Unintended recipients must notify the sender immediately > by e-mail/phone & delete it from their system without making any > copies or disclosing it to a third person. > > <winmail.dat> > -- > 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 NEES@UCSB Institute for Crustal Studies, University of California, Santa Barbara 805-893-8042 -- 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 Reddy, Gopikrishna
When dealing with monetary units, you should always make sure you use
decimal types. Just use xs:decimal() around your values before using them in computations. -Erik On May 13, 2008, at 12:23 AM, Reddy, Gopikrishna wrote: > Hi, > Iam new to orbeon can anybody help me out in this > > Iam subtracting two input fields the output iam getting as > exponential value but i need the output as a number > Iam giving the code as follows > > <xforms:setvalue ref="instance('main-instance')// > tax1035mixedmoneytxnamt" value="if(instance('main-instance')// > tax1035mixedmoney='Y') then (instance('main-instance')// > tax1035grsamt) - (instance('main-instance')//tax1035prcdamt) else > ''"/> > > > Thanks and Regards, > K Gopikrishna Reddy > > > This e-mail (and any attachments), is confidential and may be > privileged. It may be read, copied and used only > by intended recipients. Unauthorized access to this e-mail (or > attachments) and disclosure or copying of its > contents or any action taken in reliance on it is unlawful. > Unintended recipients must notify the sender immediately > by e-mail/phone & delete it from their system without making any > copies or disclosing it to a third person. > > <winmail.dat> > -- > 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 |
Free forum by Nabble | Edit this page |