on 01-26-2007 3:31 AM
I have 2 transparent_container_Table1 transparent_container_Table2
i want to switch between this 2 either 1 of this visibility.none while other is visible.
How do i set this.....help is appreciated........
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Yzme Yzme,
To set the Visibility of the tranpsaremnt Containers:
1.Create 2 value attributes (eg: a) Tab1Visibility b) Tab2Visibility) of type
<b>com.sap.ide.webdynpro.uielementdefinitions.Visibility.</b>
Setting the property of context attribute to Visibility:
After creating context attribute go to properties-> select the type ->Go to Local Dictionlary -> Expand the package "com.sap.ide.webdynpro.uielementdefinitions"
-> select the type as Visibility -> Ok
2) Bind the <b>visibility</b> property of the Transparent Containetrs to respective value attributes created above.
3) Finally depending on the condition you can set the Visible property of the containers:
if(wdContext.currentContextElement().getTab1Visibility ().equals(WDVisibility.VISIBLE))
wdContext.currentContextElement().setTab2Visibility(WDVisibility.NONE)
else
wdContext.currentContextElement().setTab2Visibility(WDVisibility.VISIBLE);
Regards,
Jhansi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can bind the visibility attribute of the container to Valueattribute of type "WDVisibility".
1. Create 2 value attributes
Name : Table1 Type : Visibility
Name : Table2 Type : Visibility
2. Bind the above attributes to respective containers.
3. In the code you can check the value as follows
if(wdCOntext.currentContextElement().getTable1().equals(WDVisibility.VISIBLE))
wdCOntext.currentContextElement().setTable2(WDVisibility.NONE)
else
wdCOntext.currentContextElement().setTable2(WDVisibility.VISIBLE);
Regards, ANilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.