DragonRAD Forum
June 19, 2013, 08:25:42 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
DragonRAD Forum
>
General Category
>
General Discussion
>
Stopping event actions
Pages: [
1
]
« previous
next »
Print
Author
Topic: Stopping event actions (Read 491 times)
wesoos
Member
Posts: 106
Stopping event actions
«
on:
December 01, 2010, 10:12:23 AM »
Guys, if I have a list of actions in a button click or menu item or something, is there a way to not continue with the rest of the actions after a script action.
Right now I'm doing some things with a script action, and if something is not right I set a validation on some field and I'll have a save action after the script action, which causes no more actions but it pops up an alert saying "Cannot save...." Any way I can stop the rest of the actions with something in the script itself and get rid of the save action?
Thanks
Logged
YiLiu
Seregon
Posts: 202
Re: Stopping event actions
«
Reply #1 on:
December 01, 2010, 10:47:29 AM »
Might you give a try to set a filed value into a hidden field in your script, and other actions' running condition can be binded to the value of this field.
If only for save action, you can move the save action into the script by calling clientevent.form.save(). But if you have other actions, the above way might be easier.
Logged
IanBowles
Administrator
Posts: 122
Re: Stopping event actions
«
Reply #2 on:
December 01, 2010, 10:53:12 AM »
In your script, you can set clientevent.cancel = true, which will terminate execution of any more actions.
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> General Discussion
Loading...