cancel
Showing results for 
Search instead for 
Did you mean: 

Set a UI element to be invisible

shani_ozeri
Participant
0 Kudos

Hello Colleagues,

I am writing a WD JAVA application in 700 (NW04s), and I have a checkBox element that I want to make visible according to a condition I have.

I`ve added an attribute to the context and is not sure which type I shuld set it to be.

Can you please help?

Thank you in advance,

Shani

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

it should be of type com.sap.ide.webdynpro.uielementdefinitions.Visibility, in properties window at type when you click the button it shows you dictionary simple types window, in that choose dictionaries->localdictionary->com.sap.ide.webdynpro.uielementdefinitions->visibilty.

Answers (2)

Answers (2)

shani_ozeri
Participant
0 Kudos

Thank you for the help!

I`ve looked for the com.sap.ide.webdynpro.uielementdefinitions.Visibility type, but did not look in the dictionary type...

Former Member
0 Kudos

Hi Shani;

Set your Context attributes of type u201Ccom.sap.ide.webdynpro.uielementdefinitions.Visibility": Then use the following statement to set the visibility of your checkbox

wdContext.currentContextElement().setVa_Vis1(WDVisibility.NONE);

I hope this helps qnd let me know if you have any issues

Regards

Gopal

Edited by: Gopal on Aug 12, 2009 6:07 PM

Edited by: Gopal on Aug 12, 2009 6:18 PM