Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Getting the WDA Element in the onAction event

Hi All,

We are working on the Netweaver 2004S release and in the process of writing an interactive Web Dynpro (ABAP) application. A Table (UI element) is defined in the main view with data binding to a context node (Cardinality 0:n, NO LEAD SELECTION, NO SINGLETON). This table has three columns and the first column is defined as a "LinkToAction" element. The values are displayed in the table correctly and the first column with document numbers is displayed properly as a link. I defined the "onAction" event of the link, and would like to get access to the selected document number. How to do this? I only get "WDEVENT" parameter in the onAction event handler. Is there any way to get access to the "LinkToAction" UI object itself in the event?

I was trying to draw a parallel with BSP's and was hoping to get access to the UI event object itself, just like what we get in the "DO_HANDLE_EVENT" of the controller. When the user clicks on the link of TABLE, I want to read the text attribute of "LinkToAction" element and then use the document number to display details. I tried using the IF_WD_CONTEXT_NODE interface etc but could not get to the "Text" attribute.

Again, this is for Web Dynpro ABAP and we don't want to use a singleton.

Thanks much for you time and your response will be appreciated

Points will be awarded

Former Member
Former Member replied

Hi Sanjay,

Thats easy!

Add the following code.


link_value type string.



You will get text in link_value.



0 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question