cancel
Showing results for 
Search instead for 
Did you mean: 

Tab strip navigation

selvakumar_mohan
Active Participant
0 Kudos

I have a scenario to navigate between tabs. The below is the actual requirement, please help me in get it done!

1. there are 2 tabs(tab1 and tab2)

2. Tab2 has a linktoaction element named "TAB1"

3. When i click on the linktoaction element i need to navigate to the TAB1 from TAB2. Please help me in getting this done!

Thanks,

Selvakumar M.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Selvakumar,


1. Create a Attribute at View context of type string .

2. In layout of Tabstrip   there is a property 'selectedTab'
   and assign that created  attribute to <b>this</b> selectedTab.

3. In the action of linktoaction, Just change set attribute
   to your required tabname.

4. In WDDOINIT method you have to set the created Attribute 
   to <b>default</b> TAB name(TAB1 in your scenario) .

Hope this resolves your problem.

Regards,

Raghava Channooru.

selvakumar_mohan
Active Participant
0 Kudos

The tab2 has only a viewcontainer.

The viewcontainer has a view within which this linktoaction is present, Though there is a event available in the events list in the main view(view containing the tab), the code is not working as the linktoaction on the view work independantly(when i exectue the view standalone).

Thanks,

Selvakumar M.

ChrisPaine
Active Contributor
0 Kudos

Hi Selva,

you'll need to ensure that the embedded view's context is mapped to the context of the view with the tabs.

Either that or set the embedded view to raise an event which you can trap in your main view.

Answers (0)