Skip to Content
avatar image
Former Member

WDDOBEFOREACTION: action name of different view

Hello,

I check the values in WDDOBEFOREACTION. Can I check the name of the action if it is an action of a <b>different</b> view?

Best regards, Hergen

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Oct 09, 2007 at 09:42 AM

    Hi ,

    u can get the action name by this way..

    DATA : LR_API TYPE REF TO IF_WD_VIEW_CONTROLLER,

    LR_ACTION TYPE REF TO IF_WD_ACTION.

    LR_API = WD_THIS->WD_GET_API( ).

    LR_ACTION = LR_API->GET_CURRENT_ACTION( ).

    a reference to object of action is returned only when the action is preformed on the view .

    if lr_action is bound .

    check ur action name by .....lr_action->name = 'Your Action Name' .

    if action is not performed on the view then the action object will not be returned...

    Hope this will help u.

    Regards

    Yash

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 09, 2007 at 11:20 AM

    Hi,

    you cannot access directly actions from another view,

    if you use an event in the component controller

    and fire it from view a, create eventhandler on view b for that event,

    you can get actions across views

    grtz,

    Koen

    Add comment
    10|10000 characters needed characters exceeded