Skip to Content
0
Former Member
Jan 07, 2008 at 05:57 PM

Get element UI property in Event Handler

23 Views

Hi,

it's possible read inside an action, ONACTIONGO_TO_DETAIL, the property TEXT, of a LinkToAction?

I want to read the property : TEXT of the LinkToAction and use this property like a parameter of the navigation :

WD_THIS->FIRE_TO_DETAIL_PLG( LV_TEXT ).

I have tried in some way, but i have obtained always error of Access Null. For example :

data: lr_linkToaction type ref to IF_WD_VIEW_ELEMENT, "CL_WD_LINK_TO_ACTION,

myView type ref to if_wd_view,

LV_TEXT type WDY_MD_TRANSLATABLE_TEXT.

CALL METHOD MYVIEW->GET_ELEMENT

EXPORTING

ID = 'LTA_COMPCODE'

RECEIVING

ELEMENT = lr_linkToaction

.

OR :

lr_linkToAction ?= myView->get_element( 'LTA_COMPCODE' ).

CALL METHOD LR_LINKTOACTION->GET_TEXT

  • EXPORTING

  • AS_EXTERNAL =

  • CONTEXT_ELEMENT =

  • CONTEXT_NODE_PATH_NAME =

  • TEXT_LENGTH = CO_UNKNOWN_TEXTLEN

RECEIVING

VALUE = LV_TEXT.