cancel
Showing results for 
Search instead for 
Did you mean: 

Hiding tabs in Tabstrip control at runtime

Former Member
0 Kudos

Hello ,

how can we hide the tabs in tabstrip control dynamically?

we have the property visible, but it is boolean.. so how can we achieve at runtime..

Please help me..

Ragrds

Raj

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member214651
Active Contributor
0 Kudos

Hi,

1. Create a context attribute of type Visibility found in (com.sap.webdynpro.uielementdefinitions).

2. Bind this attribute to the visibility property of the tabs which u want to hide.

3. Write the following code to make the UI element visible / hidden / none.

wdContext().currentContextElement().set<VisibilityAttribute>(WDVisibility.NONE / BLANK / VISIBLE);

Regards,

Poojith MV

Former Member
0 Kudos

Hi ep user,

create a Context value name tab1Visible for each tab with type boolean.

Bind this value on each tab

tab1Visible --> Tab1

tab2Visible --> Tab2

etc.

In the wdInit() set all to true.

wdContext.currentContext.setTabe1Visible(true),

wdContext.currentContext.setTabe2Visible(true),

etc.

Set the context Values where you want to switch off the tab.

Regards

Gunter

Former Member
0 Kudos

Hi,

Take a context of type Boolean and bind that attribute to the Tab's visiblity property.

Now modify the binded context attribute according to your visiblity

if the value is false then it is not visible and if the value is tru then it is visible.

Regards,

Raju Bonagiri

Former Member
0 Kudos

The node it is mapped to needs to be of the correct type.

[javadoc for WDVisibility|http://help.sap.com/javadocs/NW04/current/wd/com/sap/tc/webdynpro/progmodel/api/WDVisibility.html]