Skip to Content
avatar image
Former Member

event LINK_CLICK of CL_GUI_ALV_TREE doesn't fire

Hi!

I am using the class CL_GUI_ALV_TREE. I made some fields links by S_LAYOUT-CLASS = CL_GUI_COLUMN_TREE=>ITEM_CLASS_LINK and they appear to be links. I have a method to catch event LINK_CLICK, but it simply doesn't raise when I click the field with link. I registered it properly with SET HANDLER. All other events do fine (e.g. EXPAND_NC). What's wrong with this one?

Thanks!

Kind regards,

Igor Barbaric

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jul 29, 2004 at 12:30 PM

    I've just found it.

    Looks like SAP guys forgot to register event in their own standard class. CL_GUI_ALV_TREE is based on it's attribute MR_COLUMN_TREE (class CL_GUI_COLUMN_TREE), but they never registered event LINK_CLICK (MR_COLUMN_TREE->SET_REGISTERED_EVENTS). I inherited CL_GUI_ALV_TREE, registered it and now it works.

    Kind regards,

    Igor Barbaric

    Add comment
    10|10000 characters needed characters exceeded