Skip to Content
0
Former Member
May 17, 2008 at 10:07 AM

New node element not shown on table

13 Views

Hi

I have a webdynpeo view with a table and a button. On clicking the button a blank row shuold be added to the table. The code is as following:

node_trn_det_1 = wd_context->get_child_node( name = if_tlp_main=>wdctx_trn_det_1 ).

data ctr type i.

CALL METHOD node_trn_det_1->get_element_count

receiving

count = ctr.

elem_trn_det_1 = node_trn_det_1->create_element( ).

elem_trn_det_1->set_static_attributes( static_attributes = stru_trn_det_1 ).

node_trn_det_1->bind_element( new_item = elem_trn_det_1

set_initial_elements = abap_false ).

CALL METHOD node_trn_det_1->get_element_count

receiving

count = ctr.

Initially ctr returns 0 and after binding the new element it returns 1, meaning the new element is added to the node. But the table is still empty. Can anyone help?

Regds

Thiru