cancel
Showing results for 
Search instead for 
Did you mean: 

Set selected popin

Former Member
0 Kudos

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 ??

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

ok

Former Member
0 Kudos

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 ).

gill367
Active Contributor
0 Kudos

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