cancel
Showing results for 
Search instead for 
Did you mean: 

Changing tabs dynamically

Former Member
0 Kudos
138

Hi All,

I have a requirement to change my tabs dynamically inside my view for different scenarios.For this, i have binded selectedTab property of tabstrip to some context attribute and then i am setting this attribute with Id's of my tabs depending upon the scenario.But this is not working and always first tab is shown by default.I tried to debug the value af the attribute and it is getting set by different Id's.Can anyone help me in this regard.This is very urgent.

P.S rewar points will be awarded if issue is resolved

Thanks

Amit Bagati

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Amit,

In which method you have set the value to tab strip context attribute. Also make sure you have passed IDs in all caps to the context attribute.

With Regards,

Arjun

Former Member
0 Kudos

hi amit this is what you must be following......

for testing purpose, initially in the wddoinit method provide the second or any other tab id ( in capital letters ) to the context and check what happens.

if it works fine then your logic is differing in some place that by default the tab1 id is sent to the context.

---regards,

alex b justin

Former Member
0 Kudos

In the modifyview method, get the reference of the tabstrip element using view->get_element( ) and call the method set_selected_tab. The selected tab name should be taken from your context attribute.

Regards,

Nithya