cancel
Showing results for 
Search instead for 
Did you mean: 

I want to make my table visible or invisible at the click of a button?

former_member205624
Contributor
0 Kudos

Hi, All

Please help me out .<b>I want to make my table visible or invisible at the click of a button?</b> My Application has two views one for search critera and one for display result in a table. I am using a viewset which contain these two views. Initally I want that my table is invisible and as soon as I clicked on a button from my search view that table must be visible on result view.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Please check this

Regards, Anilkumar

Former Member
0 Kudos

Hi,

please close your earlier message.

Regards,

Satyajit.

Former Member
0 Kudos

Hi,

1. Create Valueattribute "tableVisibility" of type"WDVisibility" in the componentController

2. Create same attribute in both the views and map the context to the componentController.

3.In firstview "onAction" event write the following.

wdContext.currentContextElement().settableVisibility(BLANK);

or

wdContext.currentContextElement().settableVisibility(VISIBLE);

Regards, Anilkumar

Former Member
0 Kudos

Hi,

Create a value attrbute "tabVisi" of type "com.sap.ide.webdynpro.uielementdefinitions.Visibility" and map it to the table's visibility property. U will find this type in Dictionary Simple Type -> local dictionary -> com.sap.ide.webdynpro.uielementdefinitions -> Visibility.

U can set visiblity by:

wdContext.currentContextElement().setTabVisi(WDVisibility.VISIBLE); // VISIBLE, NONE and BLANK are the options.

Regards,

Piyush.