on 05-13-2015 7:23 AM
Hi Experts,
I have search UIBB with personnel number. Once i click on search button , I should display data in LIST UIBB.
I had written code but it is triggering LIST UIBB first and then SEARCH UIBB.
Please help me how to trigger SEARCH UIBB first and then LIST UIBB.
Best regards,
Narasimha.
Hi,
I found the solution. Created one singleton class to set and get data and used raise_event_by_id method to call the PROCESS_EVENT method.
sample code: in PROCESS_EVENT method of Search UIBB
CHECK io_event->mv_event_id = if_fpm_guibb_search=>fpm_execute_search.
TRY .
DATA: lr_fpm TYPE REF TO if_fpm.
lr_fpm = cl_fpm_factory=>get_instance( ).
DATA mo_instance TYPE REF TO zcl_emp_details2_singleton.
CALL METHOD zcl_emp_details2_singleton=>get_instance
RECEIVING
re_instance = mo_instance.
CALL METHOD mo_instance->set_user_details
EXPORTING
iv_condition = it_fpm_search_criteria."lt_where.
lr_fpm->raise_event_by_id(
EXPORTING
iv_event_id = if_fpm_guibb_list=>gc_event_open_search"gc_event_list_filter " This defines the ID of the FPM Event
* io_event_data = lr_event_data " Property Bag
).
CATCH cx_fpmgb.
ENDTRY.
sample code: in PROCESS_EVENT method of LIST UIBB
DATA: lt_fpm_search_criteria TYPE fpmgb_t_search_criteria.
CASE io_event->mv_event_id.
WHEN if_fpm_guibb_list~gc_event_open_search.
DATA mo_instance TYPE REF TO zcl_emp_details2_singleton.
CALL METHOD zcl_emp_details2_singleton=>get_instance
RECEIVING
re_instance = mo_instance.
CALL METHOD mo_instance->get_user_details
IMPORTING
ev_condition = gt_condition.
Best regards,
Narasimha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Narasimha,
Need to fetch the data in the process_event method based on the search action and after fetching pass the data to the list uibb using MT_PARAMETERS in the io_event. You need to capture the same data in get_data method under the fpm_execute_search action of List uibb feeder class.
Hope this is help full.
Regards,
Naga
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Narasimha,
the method PROCESS_EVENT is called before the method GET_DATA.
So you can use method PROCESS_EVENT in the search UIBB to add the search criteria to the event and then select your data in method GET_DATA in the list UIBB.
Regards,
Rebekka
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.