on 01-27-2014 5:58 AM
Hi Experts,
I have an ALV Column which i have created as Button.
I Need to pass an Image and Text to the Button.
How to achieve this Functionality? Kindly let me know.
Also how to create an action for this button?
Can we control the action in the On CLICK Event of ALV based on the selected column Name?
Kindly give some Suggestions.
Thanks,
Nalla B.
HI Balu,
class CL_SALV_WD_UIE_BUTTON will have all the methods which you are looking for.
example:
SET_TEXT --- Sets the Text on the Button
SET_IMAGE_SOURCE -- Sets Label Text of Image.
To register event , ( view must use the standard ALV component, wd_salv_table)
1. Go to the view
2. create an method , in the Event Tab, select F4, and select on_Click_Event.
3. Implement Logic whatever u need in the newly created method.
Regards,
Ravikiran.K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nalla,
Ex: lo_button->set_image_source( value = '~Icon/ErrorMessage' ).
lo_button->set_text( value = 'My_button')
We can get the control inside event handler onCellAction event of alv.
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 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.