cancel
Showing results for 
Search instead for 
Did you mean: 

Right click event on dynamic alv

Former Member
0 Kudos

Hi,

I have a dynamic editable alv built on my webdynpro screen. Now the requirment is in the first column of the alv if the user right clicks on the cell a menu should come which has two be filled with custom menus.

Please let me know how that can be acheived.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I'm not sure that there is really such event to handle the RIGHT CLICKS in WDA. If they are there also, I wonder how can they be applicable to ALV. We have context menus related UI elements but not used ALV. I would suggest to use the cell popins in TABLE UI element. These popins are not avialable for ALV.

Regards,

Lekha.

Edited by: Lekha on Nov 12, 2010 1:02 PM

Former Member
0 Kudos

I have tried to do it differently. In the ALV's column i have dynamically added linktoaction ui element. But there are no methods to add menu and menu actions to linktoaction reference. Can you please suggest how to proceed?

Former Member
0 Kudos

Hi,

Yes, You are correct. There are no methods include the menus in ALV. I guess not available in TABLE also.Please crosscheck.

What exactly you wanted to show in MENUand what you expectt he user to do.

Create a view with context Menu or as per your requirement in the same component and on the link to action call this view in the popup and do user user interaction there. Please try this out.

Regards,

Lekha.

Former Member
0 Kudos

Hi,

Lekha's suggestion is working. I have done this already. it is an work around and it is not elegant as context_menu.

We have seen and also discussed in this form that the classes

CL_SALV_WD_UIE_IMAGE

CL_SALV_WD_UIE_TEXT_VIEW

are having getter and setters for menu but they are simply not working. I am not able to get them worked. I haven't heard anybody succeed in that.

So my advice, follow the workaround and save your time on this research.