cancel
Showing results for 
Search instead for 
Did you mean: 

Turning UI Elements on and off programmatically?

Former Member
0 Kudos

Hi Everyone: I haven't been able to find any tutorial that talks about how to add or hide a UI element from within the application. Any pointers would be greatly appreciated! Thanks, Ian.

Accepted Solutions (0)

Answers (2)

Answers (2)

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Are you talking about WDJ or WDA? If WDA, here are some weblogs.

/people/thomas.szcs/blog/2005/12/28/dynamic-programming-in-web-dynpro-abap--introduction-and-part-i-understanding-ui-elements

/people/thomas.szcs/blog/2006/01/03/dynamic-programming-in-web-dynpro-abap--part-ii-handling-viewelements

Regards,

Rich Heilman

Former Member
0 Kudos

That's easy:

Every UI element has a property "visible".

Bind this property to a context attribute of DDIC type "com.sap.ide.webdynpro.uielementdefinitions.Visibility".

Then you can show / hide all UI elements bound to this attribute by setting the attribute value to WDVisibility.VISIBLE / WDVisibility.NONE.

Armin