on 01-02-2014 10:47 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
74 | |
10 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.