Skip to Content
0
Former Member
Jun 18, 2009 at 12:43 PM

How to pass data of a multipane in a popup to a view

52 Views

I`m new in wd4 abap.

I try to do a view with a botton. this botton open a popup with a multipane. this multipane has the days of the current month and a check box to select the day. I fill this with a suplly function.

I have de same context in the controller, in the view and the view of the popup.

I try to select all the day with a botton in the view.

I write this in the action select_all

DATA lo_nd_dia3 TYPE REF TO if_wd_context_node.

DATA lo_el_dia3 TYPE REF TO if_wd_context_element.

DATA lt_dia3 TYPE STANDARD TABLE OF wd_this->element_dia3.

DATA ls_dia3 TYPE wd_this->element_dia3.

lo_nd_dia3 = wd_context->get_child_node( name = wd_this->wdctx_dia3 ).

lo_nd_dia3->get_static_attributes_table( IMPORTING table = lt_dia3 ).

LOOP AT lt_dia3 INTO ls_dia3.

IF ls_dia3-enable = 'X'.

ls_dia3-selected = 'X'.

  • lo_nd_dia3->set_static_attributes( ls_dia3 ).

MODIFY lt_dia3 FROM ls_dia3.

ENDIF.

ENDLOOP.

lo_nd_dia3->bind_table(

new_items = lt_dia3

set_initial_elements = abap_true ).

but when I press the buttton Ok of popup, in the view dont retorn the table in the action ok_popup.

DATA lo_nd_dia3 TYPE REF TO if_wd_context_node.

DATA lo_el_dia3 TYPE REF TO if_wd_context_element.

DATA lt_dia3 TYPE STANDARD TABLE OF wd_this->element_dia3.

DATA ls_dia3 TYPE wd_this->element_dia3.

  • navigate from <CONTEXT> to <DIA2> via lead selection

lo_nd_dia3 = wd_context->get_child_node( name = wd_this->wdctx_dia3 ).

lo_nd_dia3->get_static_attributes_table( IMPORTING table = lt_dia3 ).

Thanks in advance and excuse for my English

Yolanda