cancel
Showing results for 
Search instead for 
Did you mean: 

How action can be triggered by image function?

Former Member
0 Kudos

Hi,

I use CL_SALV_WD_UIE_IMAGE SET_IS_DECORATIVE to set a image function but cannot find a event handler for it. Which event handler is triggered by clicking cell image?

Best regards,

ts

Accepted Solutions (1)

Accepted Solutions (1)

ramakrishnappa
Active Contributor
0 Kudos

Hi ts,

Unfortunately, we don't have an action for image, and also, OnClick event is not triggered on any action of the cell.

I can suggest you some work around solution,

  • Create a button by using class cl_salv_wd_ui_button
  • Set the image source field name to your context attribute IMAGE, now the button contains only image
  • On click of this button triggered and can be caught using ALV's ON_CELL_ACTION

Hope this helps you.

Regards,

Rama

Former Member
0 Kudos

Hi Rama,

Thanks for your reply. How can SET_IS_DECORATIVE be used?

Best regards,

ts

ramakrishnappa
Active Contributor
0 Kudos

Hi ts,

Please find the explanation from help document: Image Properties


●     isDecorative

Determines whether an image has only decorative meaning, and no functional meaning.If it does not provide the user with any kind of information, set this property to true.When accessibility mode is active, this image will be ignored and removed from the tab sequence.

It has no links to the action of ui element.

You can achieve your requirement by using either BUTTON OR LINK_TO_ACTION ui element and bind the image_source to your context attribute.

Hope this helps you.

Regards,

Rama

Answers (0)