Cancel Button problem

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

Cancel Button problem

Sathish K Mittapelli

Hai All,

              I have added cancel button to my code to cancel the changes made to my data on client side before submission to DB. I have written code for that like this


<xforms:trigger ev:defaultAction="cancel">
                    <xforms:label>Cancel</xforms:label>
                    <xforms:toggle ev:event="DOMActivate"  case="display"/>
                    <xforms:toggle ev:event="DOMActivate" case="edit_button"/>
                    <xforms:reset ev:event="DOMActivate"  model="emp_model"/>
                    </xforms:trigger>
           
Whenever the trigger activates it has to reset the whole model but it is not working in my case.Is there any alternative for this.

Thanks in advance.
THANKS & REGARDS
SATHISH K MITTAPELLI  


Bollywood, fun, friendship, sports and more. You name it, we have it.

--
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: Cancel Button problem

Alessandro Vernet
Administrator
Hi Sathish,

On Sun, May 4, 2008 at 10:41 PM, sathish kumar <[hidden email]> wrote:
> Whenever the trigger activates it has to reset the whole model but it is not
> working in my case.Is there any alternative for this.

The <xforms:reset> action is not implemented at this point. But
because of some improvements Erik made recently to the code, this
would now be easier to implement. Here is the corresponding bug for
reference:

http://forge.objectweb.org/tracker/?group_id=168&atid=350207&func=detail&aid=303946

In the meantime, you might have to do this "manually": maybe copying
the instance with your data in another instance, and copying it back
when the button "reset" is pressed.

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