on 02-22-2009 4:28 PM
Hi all,
I would like to catch the event of navigation from the tab in order to allert the user if the data is not saved.
I need to do this before the onSelect Tab Event is fired.
How should I do it?
Thanks in advance
Michael
Hi,
You need to have a custom attribute that tell you the state was changed( edited by user or not),
Onselect action has a paramter which tell you the oldTab.
Change the selected tab based on this paramters
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Michael,
You can follow these steps.. Since you already have an event onSelect which is called every time the tab is clicked, therefore you can use this particular event for poping an alert to user.
Create an event for onSelect Lets say "Select"
In the wdDoBeforeAction you can check for the valid values of the tab1 before proceeding to particualr action..
Please use this code:
if(validation.getCurrentAction().equals(IPrivateTestView.WDActionEventHandler.SELECT)){
....
...
// You validation code
....
}
you can do any validations in this method before calling the actual Event.
I hope this will solve your problem. If you need any furtehr details please let me know.
Thanks and Regards
Pravesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.