cancel
Showing results for 
Search instead for 
Did you mean: 

Checking current action in WDDOMODIFYVIEW method

Former Member
0 Kudos

Hello,

I amt trying to check the action on UI which triggered the WDDOMODIFYVIEW method. I tied the following methods but they are not available for use in WDDOMODIFYVIEW method.

IF_WD_CONTROLLER~GET_ACTION

IF_WD_VIEW_CONTROLLER~GET_CURRENT_ACTION

For the time being i am setting a flag when action is triggered and check value of flag in wddomodifyview() { by binding the flag to a context attribute }.

Please let me know if there is a better way to do this.

Thanks,

Vivek

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks for your suggestion Chris. I guess i will go with it if i don't get any other suggestions for checking the current action.

Regards,

Vivek

ChrisPaine
Active Contributor
0 Kudos

Rather than using a context attribute for passing your flag, you could just set an attribute in the view.

Given that this flag will never be displayed, or be used to control UI elements, it might be slightly easier to access it just using


wd_this->m_action_flag

Other than that, not sure what to suggest!

Cheers,

Chris