Skip to Content
Author's profile photo Former Member

Getting the values from the instance that raised Event

Suppose we have a table UI element and in the table UI element if we have a Link to action. In many cases we need to get the value of the attribute which raised this event. This is the most usual case. In Webdynpro the value of the context element that raised the event is stored in event WD_EVENT.

we can retrieve the value by accessing the GET_CONTEXT_ELEMENT method if the WD_EVENT. Here is the code snippet for getting the context element of the raised event.

DATA: l_elem type ret to IF_WD_CONTEXT_ELEMENT.

l_elem = WDEVENT->GET_CONTEXT_ELEMENT( ‘CONTEXT_ELEMENT’ ).

Hope this will be useful.

Assigned Tags

      1 Comment
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      HI Raju,

      Do you have any idea about how to get the instance of the context outside the WD?

      Note : Without using BADI.

      Thanks,

      Pradeep