cancel
Showing results for 
Search instead for 
Did you mean: 

How to collectively set visible condition for 50 fields in ABAP Webdynpro

vimal
Active Participant
0 Kudos

i have 50 fields for which i want to check a value in table and set their visibility.I want to do it WITHOUT creating an attribute of type boolean in node and then binding the Visible property to it.if there is any other solution please suggest.

/Vimal

View Entire Topic
former_member184578
Active Contributor
0 Kudos

Hi,

You can avoid creating extra attribute using set_attribute_property( ) method of context element, but you must bind the visibility property.

Bind the visibility property to the same attribute to which the value is bound and the use method


    lo_el_context->set_attribute_property(

         attribute_name = 'VAL'     " VAL is the attribute name

         property       = lo_el_context->e_property-visible

         value          = abap_false ).  " make it true or false based on the data check


You can check this document for reference to bind the property: http://scn.sap.com/docs/DOC-27125


Or, you must do a dynamic UI element manipulation in WDDOMODIFYVIEW method


Hope this helps u,


Regards,

Kiran