cancel
Showing results for 
Search instead for 
Did you mean: 

How to set transparent_container Visibility

Former Member
0 Kudos

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........

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi ,

check out this threads

Regards,

gopi

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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