on 05-30-2007 4:46 PM
Hi friends ,
I am creating tree Dynamic .
In that when it shows dump as 'Access via null object ' in source code extract I am getting following extract .
method get_action_from_event.
data: id type string,
view_name type string,
controller_manager type ref to cl_wdr_component,
client_component type ref to cl_wdr_client_component,
target type ref to cl_wdr_controller.
check root_component->is_deleted = abap_false.
split event->view_name at `.` into id view_name.
client_component = cl_wdr_client_application=>get_instance( id ).
controller_manager = client_component->component.
target = controller_manager->get_controller( view_name ).
action ?= target->get_action_internal( event->command ).
<i><b>if event->type = event->co_action_event.
action->set_parameters( event->parameters ).</b></i>
action->set( ui_event = event->ui_element_event ).
else.
action->set_parameters( event->parameters ).
endif.
endmethod.
..Now What this system code does and if I am getting error at Highlighted line what is cause of it .
Hi Parry,
I could imagine that the action is not there. You may have declared an action to be called. This action must exist in the view.
E.g. if you have declared the action "DOIT" in the tree, you should have declared the action "DOIT" in the view, which means that the method "ONACTIONDOIT" exists.
If this is not the reason, please check, which of the objects (event, action) have the null value.
Ciao, Regina
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
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.