cancel
Showing results for 
Search instead for 
Did you mean: 

"Leave tab" event for tabs in TabStrip UI

0 Kudos

Hi

I want to check that some input fields are valid and force users do not change Tab in TabStrip (until enter valid values for required fields) but I do not know is it possible this in Webdynpro? Does anybody know which is this event and may I use it in my WD Application?

In TabStrip there is action for OnSelect event but this is event when user enters in Tab. I need event when user exits the tab.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Rosen,

Try the following:

1. Bind selectedTab property to context attribute.

2. Save currentTab in some variable

3. Now in onSelect action handler you have access to previously selected tab and the new tab (context attribute will reflect selection). If some validation fails you can re-assign SelectedTabAttr to previous value effectively preventing switching tabs.

VS

0 Kudos

Thank you very much Valery

Answers (0)