on 01-31-2011 12:38 PM
Hi all,
I want to get the reference for the current view in a Event handler method.
I dont want ot import into the method.
How can i get a object(reference) to the current view?
--
Regards
Vinay Bedre
Thank you everyone for your kind reply...
--
Regards
Vinay Bedre
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm curious why you need the reference to the View anywhere except WDDOMODIFYVIEW. This event handler is the only place you can safely manipulate the view. In other event handlers you should only set flags to control what logic you execute in WDDOMODIFYVIEW.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
define a attribute in your view like go_view type ref to if_wd_view.
on wddomodifyview method
if first-time = abap_true.
wd-this->go_view = view
endif.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.