Copy on GET?

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

Copy on GET?

Jim Logan-3
I have several submissions in my form. One is for the main instance, the
others are for dynamic queries that help the user fill in the main
instance. When the user causes a submission to GET the main instance, I
would like to take a snapshot of that instance that does not get
modified, so I can use it to revert values, among other things.

I know how to execute an action when any submission is done, but I need
to avoid taking a snapshot of the main instance when I do a submission
for a query.

How do I execute an action only when one particular submission updates
the main instance?

Thanks,
-Jim



--
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: Copy on GET?

Erik Bruchez
Administrator
You can execute an action just before a submission is run:

<xforms:submission ...>
   <xforms:action ev:event="xforms-submit">
      ...

Not sure if that helps.

-Erik

On Jun 18, 2008, at 2:22 PM, Jim Logan wrote:

> I have several submissions in my form. One is for the main instance,  
> the others are for dynamic queries that help the user fill in the  
> main instance. When the user causes a submission to GET the main  
> instance, I would like to take a snapshot of that instance that does  
> not get modified, so I can use it to revert values, among other  
> things.
>
> I know how to execute an action when any submission is done, but I  
> need to avoid taking a snapshot of the main instance when I do a  
> submission for a query.
>
> How do I execute an action only when one particular submission  
> updates the main instance?
>
> Thanks,
> -Jim
--
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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Copy on GET?

Jim Logan-3
Erik Bruchez wrote:
> You can execute an action just before a submission is run:
>
> <xforms:submission ...>
>   <xforms:action ev:event="xforms-submit">
>      ...
>
> Not sure if that helps.
Erik,

Having an action within the submission solves the problem. I'm finally
catching on--actions can go just about anywhere. :-)

Thanks,
-Jim



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