cancel
Showing results for 
Search instead for 
Did you mean: 

Action before onSelect TabStrip Event.

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

Plz see the below thread

pravesh_verma
Active Contributor
0 Kudos

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