Skip to Content
author's profile photo Former Member
Former Member

TabStrip

Hi All,

I am using a tabstrip in my application.

I want to populate the fields of tab2 based on the user input in tab1. I am using different views for each tab using the ViewContainerUIElement.

In WD is there any event i can use when a user selects a tab ?

or is there any event similar to PAI of ABAP ?

If not what is the best approach to achieve this ?

Thanks.

Add a comment
10|10000 characters needed characters exceeded

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 11, 2008 at 12:11 PM

    Hi VV,

    In TabStrip there is an even called onSelect(). You can use this event and for whenever user navigating one tab to another tab. You can get the what tab has been selected at present by selecting the SelectedTab option in the properties. It is very easy.

    points if useful

    Thanks

    Suresh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 11, 2008 at 12:14 PM

    hi

    For TabStrip,there is an Onselect Event.

    Take an attribute of type String in the Context,for selectedTab property of TabStrip assign this attribute.

    In onSelectEvent action of TabStrip you write the following code.

    seltab-->Attribute(String)

    Tab,Tab1-->tabs in TabStrip

    if(wdContext.currentContextElement().getSeltab()=="Tab")

    {

    //write your desired functionality

    }

    if(wdContext.currentContextElement().getSeltab()=="Tab1")

    {

    //write your desired functionality

    }

    Regards

    sowmya

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 11, 2008 at 02:24 PM

    Why not just using data binding? If you bind the UI elements from both views to the same context (the component controller context or a custom controller context), then the values edited in view1 will automatically be updated in view2.

    Armin

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 11, 2008 at 11:56 AM

    Hi,

    There is a attribute called u201ConSelectu201D for the tabstrip.You can create a action selectTab and bind it to the onSelelect attribute of the TabStrip.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 11, 2008 at 11:57 AM

    Hi,

    You can get the selected tab value by getting the property of Tab selectedTab. Bind it to the context attribute and get the selected tab. When the user selects the Tab there is an action onSelect. You can fulfill the requirement with these.

    Thanks & Regards,

    Jhansi Miryala

    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.