Skip to Content

"Leave tab" event for tabs in TabStrip UI

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 07, 2005 at 11:16 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.