Hi
I am fairly new to this and have an issue transferring our current documents that are on 3.5.1 Orbeon to 3.8.0. In 3.5.1 The forms appear correctly, and submit to the correct url. In 3.8.0 The forms appear correctly but on pressing the submit buttons all that happens is that the page refreshes and doesnt post to the correct URL. Can anyone give me a clue as to any changes between the versions that might cause this The code snippets are as follows In the model <xforms:submission id="cancel_model_Document" ref="instance('instance_model_Document')" action="{xxforms:instance('url')/serverpath}/POST-page.php?action=cancel" method="post" validate="false"/> In the body <xforms:trigger> <xforms:label ref="instance('url')/cancel/canceltext"/> <xforms:action ev:event="DOMActivate"> <xforms:send submission="cancel_model_Document"/> </xforms:action> </xforms:trigger> Many thanks in anticipation Simon |
Simon,
Never worked with 3.5 but with 3.8 you have to list external submissions on your model. Do you have something like this on your model? <xforms:model id="main" xxforms:external-events="cancel_model_Document">
On Mon, Jan 31, 2011 at 11:11 AM, Simon <[hidden email]> wrote:
-- 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 Simon
Binesh
Many thanks for your reply my model statement doesnt contain the xxforms:external-events="cancel_model_Document" This is my model info <xforms:model id="model_Document" schema="/Document.xsd" xxforms:readonly-appearance="static" xxforms:external-events="javascriptSubmit"> Does the model statement require a separate statement for each submitted statement Regards Simon |
Simon,
My bad. I thought you are submitting with a custom event just like we do. Please ignore my response. I should have paid more attention :(
On Mon, Jan 31, 2011 at 11:41 AM, Simon <[hidden email]> wrote:
-- 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 Simon
Simon,
Try enabling XForms logging: Then click your button, and check the logs for information about what's happening with the cancel_model_Document submission.
-Erik
On Mon, Jan 31, 2011 at 8:11 AM, Simon <[hidden email]> wrote:
-- 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 |
Eric Many Thanks
I have enabled debug logging for all the items in the log4j.xml on the server but on pressing the button I get no reference to cancel_model_Document in the logs. Currently on clicking the button the 3.5.1 version takes me to a new url. Has there been any changes to the way variables are posted to the xforms server, as we use the server embedded in our application. I have tried to get the widget inspector working on 3.8.0 but again have had no success. originally we used <widget:xforms-instance-inspector xmlns:widget="http://orbeon.org/oxf/xml/widget"/> I have tried this, and the following syntax <fr:xforms-inspector xmlns:fr="http://orbeon.org/oxf/xml/form-runner"> Again no success - Simon |
Administrator
|
Simon,
Hard to tell without looking closer at what's happening. There have been lots of changes in the almost 4 years since 3.5.1 was released. However a click on a button should behave the same.
Now that you mentioned embedding the form in your app, I can see how certain things (JavaScript) could break. Do you see JavaScript errors? -Erik
On Tue, Feb 1, 2011 at 7:57 AM, Simon <[hidden email]> wrote:
-- 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 |
Eric
I havnt seen any javascript errors - do you have a contact number or email for the Orbeon guys as their phone is on answerphone and any emails dont seem to get there Simon |
Administrator
|
That is called "time difference" ;) -Erik
On Thu, Feb 3, 2011 at 8:54 AM, Simon <[hidden email]> wrote:
-- 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 |