on 09-02-2010 1:21 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.