cancel
Showing results for 
Search instead for 
Did you mean: 

make label visible in webdynpro code

Former Member
0 Kudos

hi,

how to set a property of a label to visible in web dynpro java code?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Create an attribute"Visibility" of type com.sap.ide.webdynpro.uielementdefinitions.Visibility

And bind this to the visibible property of the label.

Set any of the following values based on your requirement


//To make the label visible
wdContext.currentContextElement().setVisibility(WDVisibility.VISIBLE);
//Hide
	  wdContext.currentContextElement().setVisibility(WDVisibility.NONE);

Regards

Ayyapparaj

Former Member
0 Kudos

Hi,

label.setVisible(WDVisibility.VISIBLE);

should do the trick.

Cheers,

Lukas.

Edited by: Lukas Zielinski on Sep 5, 2008 11:11 AM