on 02-10-2011 2:05 PM
Hi,
I am assigning this way the selected popin to my table:
lr_table->set_selected_popin( value = 'ALVTABLE.TAB_EMPLOYEES.SELECTED_POPIN' ).
ALVTABLE is my view
TAB_EMPLOYEES is a table in my context node
SELECTED_POPIN in a field in the above table
when I run the application I get a short dump of type OBJECTS_OBJREF_NOT_ASSIGNED and the protocol tells me that I try to access a NULL object.
where is the problem ??
ok
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
i have seen this code working in a action handler.
context_element, id are the event parameters in the action handler method.
data view type ref to if_wd_view.
data wd_table type ref to cl_wd_table.
data wd_element type ref to cl_wd_view_element.
data node type ref to if_wd_context_node.
node = context_element->get_node( ).
node->set_lead_selection( context_element ).
node->clear_selection( ).
view ?= wd_this->wd_get_api( ).
wd_table ?= view->get_element( 'TABLE' ).
wd_element ?= view->get_element( id ).
wd_table->set_selected_popin( wd_element->_parent->id ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI
Use bind method instead of set and there is no need of giving view name ALVTABLE
lr_table->BIND_selected_popin( value = 'TAB_EMPLOYEES.SELECTED_POPIN' )
thanks
sarbjeet singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.