on 02-26-2014 9:39 AM
Hi Team,
My requirement is to set buttons INVISIBLE of standard component. I have enhanced component and view. But i am not able to set the button to invisible. properties of the UI elements are in read only mode.
Can some one suggest me.
Thanks & Regards,
Sankar Gelivi
Hi,
You cannot directly change the properties of standard component UI elements. You have to enhance the component and delete the UI (Remove element) and create a new UI element of same type and bind to the same attribute and set the visible property.
Check this document for reference.
OR, create a post exit in WDDOMODIFYVIEW method and set the visibility dynamically using set_visible( ) method of UI element.
sample:
lr_button ?= view->get_element( 'BUT' ).
lr_button->set_visible( abap_false ).
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.
Hi Sankar,
You can do it as below
Approach1:
lo_btn->set_visible( cl_wd_button=>e_visible-none ).
Aproach2:
Note: you can undo the element deletion if required
Approach3:
use the personalization/customization either by using admin mode or application configuration.
Hope this helps you.
Regards,
Rama
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.