cancel
Showing results for 
Search instead for 
Did you mean: 

Need some help with Tab Strip

Former Member
0 Kudos

Hello Experts,

I have a got a scenario where I have 4 option button on the page & Tabstrip having 4 tabs below that.

Based on the options he chooses I need to make those tabs visible or invisible.

Can any one of you suggest me how can I do it.

PS:

I tried creating a Value attribute with Boolean as a type & assigned it to the Visibility of the Tab.

This think works but the problem is after selecting the options the tabs are collapsed on each other..so user cant see it unless he goes onto the navigation & choose the appropriate one.

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

You nead to create a method and call it from the event "onSelect", in the TabStrip.

Create a context element like "SelectedTab". Use this context element to control what Tab you selected in the method like this:

if (wdContext.currentContextElement().getSelectedTab().equals("TabX"))

{

...

}

else if(wdContext.currentContextElement().getSelectedTab().equals("TabY"))

{

...

}

Best regards,

Ana.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Create an string type attribute as selectedTab and bind it to the SelectedTab property of the TabStrip.

In the action of your option button, set the name / id of tab that you want to display in the selectedTab attribute so that the tab gets displayed

Lets the tabs are Tab1, Tab2, Tab3 and Tab4. Now on a button click you want Tab3 to be displayed then on the action of button write the code as

wdContext.currentContextElement().setselectedTab('Tab3');

Regards,

Amol