cancel
Showing results for 
Search instead for 
Did you mean: 

Pop up is not closing when selecting row

Former Member
0 Kudos

Hi,

I have developed WebUI application one field with f4 help, when i am click on f4 help its is opening popup window as comp2 advance search. From there i am choosing one row of result list. But the problem is popup window is not closing when i am choosing row.

Please help me with your valuable answers.  

Thanks,

Accepted Solutions (1)

Accepted Solutions (1)

praveen_kumar194
Active Contributor
0 Kudos

as leon suggested, you can just call the window outbound plug. Do it  in the event handler that will be triggered when you select some entry in the result list on the popup window.

some thing like below.

    DATA: lr_window          TYPE REF TO cl_bsp_wd_window.
  lr_window ?= me->view_manager->get_window_controller( ).
  lr_window->call_outbound_plug( iv_outbound_plug   = 'RETURNRESULT (REPLACE WITH YOUR WINDOW OUTBOUND PLUG' ).

Former Member
0 Kudos

Hi Praveen,

Thanks for your reply,

My case is...I have comp2(Which open as popup window) , it contain search and result view. Result view is table view.

i have written above code in comp2-window-outbound plug method. But it is not triggering whenever i am selecting result table row.

when ever i am selecting table row, which event will be trigger?.  In Which method, i have to write above code?

Thanks,

Former Member
0 Kudos

Greetings Reshma,

could you post the coding part of pop_up close event and the global attribute snap shot?

Savaridasan

0 Kudos

Hi Reshma,

Check the .htm page and see the value of the attribute "onRowSelection". That would be the event that is triggered while row selection.

Or you can also debug the DO_HANDLE_EVENT to see which is the event that is triggered a row is selected. Put the code in the corresponding event.

Thanks & Best Regards,

Leon

praveen_kumar194
Active Contributor
0 Kudos

follow the leon suggestion and put the code there which i suggested. look at the below letters in bold, here you need to give the event name that will be triggered when select the row. then the code will be executed and window outbound plug will be called and you can navigate back to the source comp.

    <chtmlb:configTable id                    = "Table"
                      navigationMode        = "BYPAGE"
                      onRowSelection        = "<%= lv_select_event %>"
                      selectionMode         = "<%= lv_select_mode %>"
                      selectedRowIndex      = "<%= RESULT->SELECTED_INDEX %>"
                      selectedRowIndexTable = "<%= RESULT->SELECTION_TAB %>"
                      table                 = "//RESULT/Table"
                      usage                 = "SEARCHRESULT"
                      visibleRowCount       = "<%= lv_lines %>"
                      downloadToExcel       = "FALSE"
                      width                 = "100%"
                      showNoMatchText       = "FALSE"
                      />
</chtmlb:tableExtension>

praveen_kumar194
Active Contributor
0 Kudos

you can simple give event name as onRowSelection = "eventname" above. i pasted that for your referece.

Answers (4)

Answers (4)

Former Member
0 Kudos

Greetings,

refer the document below,  to refer another component for search help

http://scn.sap.com/docs/DOC-37731

Cheers,

Savaridasan P

Former Member
0 Kudos

Hi Savaridasan,

Thanks for sending me doc link, But In your doc, i am  not able to see outbound plug code and creation in comp2.

Thanks,

Former Member
0 Kudos

Hi Reshma,

  In outbound plug of your popup window,call its own outbound plug as shown below.

fire_outbound_plug( iv_outbound_plug = 'your_outbound_pug_name' iv_data_collection = iv_data_collection ).

Regards

Rajarama U


AB069
Active Participant
0 Kudos

Hi Reshma,

                 I am working on the same object(f4 help) ,could you please provide me the document.

Thanks.                 

Former Member
0 Kudos

Greetings Reshma,

global attribute:

lastname_valuehelp_popup -  instance Attribute  - Public - Type Ref To - IF_BSP_WD_POPUP

did you call below statement in close event of the pop_up?

lastname_valuehelp_popup->get_fired_outbound_plug( ).

Former Member
0 Kudos

Hi Savaridasan,

Should i write any code in outbound plug?

Thanks,

0 Kudos

Hi Reshma,

Check if you are calling the outbound plug of the F4 help window while choosing the row.

Thanks & Best Regards,

Leon