cancel
Showing results for 
Search instead for 
Did you mean: 

Pop up window clears all existing nodes in view

Former Member
0 Kudos

Hi all, i creating a pop up window to upload a pdf file in a view , in my view already customer details i filled in existing node, when i select my link to open pop up its opening all my nodes getting cleared in the view, i did'nt write any code to clear my node, but it invalidating my existing node, kindly give me a solution, here i post my code to get pop up.

lo_api_component  = wd_comp_controller->wd_get_api( ).

     lo_window_manager = lo_api_component->get_window_manager( ).

     lo_window         = lo_window_manager->create_window(

                        window_name            = 'W_LEGAL_DOC_POPUP'

                        title                  = 'Form 60'

*    close_in_any_case      = abap_true

      message_display_mode   = if_wd_window=>co_msg_display_mode_selected

*    close_button           = abap_true

*    button_kind            = if_wd_window=>co_buttons_ok

*    message_type           = if_wd_window=>co_msg_type_none

*    default_button         = if_wd_window=>co_button_ok

                        ).

     lo_window->set_window_size( width  = '75%'

                                 height = '75%' ).

     lo_window->open( ).

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi ,

check whether you are binding any thing or calling any thing in WDDOINIT() Method OR Modify View method or check in the hooks method of Window as well...Some Binding Problem..

Thanks & Regards

@Surendra@

former_member198833
Active Participant
0 Kudos

Hi Nandha,

If you are invalidating your node when opening the popup, as you said, this will happen.


When you invalidate a node, it will call the supply function of that node, repopulating it and resetting the lead selection. Which disposes of any modifications made at the context that were made at runtime and not stored permanently.

Regards,

Felipe

Former Member
0 Kudos

Hi Zanettini,

I am not invalidating my node anywhere , i am just calling a view in popup window, but what are the nodes available in the main view all those getting invalidate.

former_member198833
Active Participant
0 Kudos

Nandha,

Verify if you are binding (using methods bind_table(), bind_elements(), etc) the context elements before opening the popup?

Regards,

Felipe

edwinguedez
Explorer
0 Kudos

Make sure that the view lifetime is framework controller.

--

Regards

Edwin Guedez