Variation of submission of data v3.5.1 to v3.8.0

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Variation of submission of data v3.5.1 to v3.8.0

Simon
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
Reply | Threaded
Open this post in threaded view
|

Re: Variation of submission of data v3.5.1 to v3.8.0

Binesh Gummadi
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">


Binesh Gummadi
Senior Software Engineer
rivetlogic
Voice +1.703.879.5740
Skype binesh.gummadi_rivetlogic
GTalk [hidden email]
Calendarbinesh gummadi's calendar



On Mon, Jan 31, 2011 at 11:11 AM, Simon <[hidden email]> wrote:

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
--
View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Variation-of-submission-of-data-v3-5-1-to-v3-8-0-tp3249064p3249064.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




--
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
Reply | Threaded
Open this post in threaded view
|

Re: Variation of submission of data v3.5.1 to v3.8.0

Simon
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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Variation of submission of data v3.5.1 to v3.8.0

Binesh Gummadi
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 :(

Binesh Gummadi
Senior Software Engineer
rivetlogic
Voice +1.703.879.5740
Skype binesh.gummadi_rivetlogic
GTalk [hidden email]
Calendarbinesh gummadi's calendar



On Mon, Jan 31, 2011 at 11:41 AM, Simon <[hidden email]> wrote:

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

--
View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Variation-of-submission-of-data-v3-5-1-to-v3-8-0-tp3249064p3249126.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




--
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
Reply | Threaded
Open this post in threaded view
|

Re: Variation of submission of data v3.5.1 to v3.8.0

Erik Bruchez
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:

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
--
View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Variation-of-submission-of-data-v3-5-1-to-v3-8-0-tp3249064p3249064.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




--
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
Reply | Threaded
Open this post in threaded view
|

Re: Variation of submission of data v3.5.1 to v3.8.0

Simon
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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Variation of submission of data v3.5.1 to v3.8.0

Erik Bruchez
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:

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
--
View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Variation-of-submission-of-data-v3-5-1-to-v3-8-0-tp3249064p3251979.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




--
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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Variation of submission of data v3.5.1 to v3.8.0

Simon
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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Variation of submission of data v3.5.1 to v3.8.0

Erik Bruchez
Administrator
That is called "time difference" ;) -Erik

On Thu, Feb 3, 2011 at 8:54 AM, Simon <[hidden email]> wrote:

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
--
View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Variation-of-submission-of-data-v3-5-1-to-v3-8-0-tp3249064p3258487.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




--
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