on 01-07-2008 5:57 PM
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.
Hi Antonello,
You cannot get a refernce to if_wd_view simply by declaring a variable referencing it. You can get a reference to it only through the WDDOMODIFYVIEW method.
What you can do is, bind the 'text' property of your button to an attribute in the context and then simply read that attribute (the caode can be generated using code wizard).
Regards,
Neha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, but i feel this so strange....it's a primary quality of the OOP reading and writing property of an object (GET / SET methods ) ... I'll do this by this way ...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.