on 03-31-2015 9:09 AM
Dear FPM Experts,
I had done the config steps for Dialog Box and I am getting a popup with my Z field on Dialog Box.
I am calling method OPEN_DIALOG_BOX during my Action, but OK and CANCEL options are not working with this Dialog window.
I am getting error as No valid target content area found.
Please help me what might be the issue.
Thanks in advance.
Regards.
Md.Rafi
Hi Rafi,
After calling the OPEN_DIALOG_BOX method, you need to goto the associated dialog box feeder class and write the below code to handle the 'OK' button action.
data: lc_key type string value 'DIALOG_BUTTON_ACTION',
lv_dialog_button_action type string.
case io_event->mv_event_id.
when cl_fpm_event=>gc_event_close_dialog_box.
call method io_event->mo_event_data->get_value
exporting
iv_key = lc_key
importing
ev_value = lv_dialog_button_action.
case lv_dialog_button_action.
when 'OK'.
" write your functionlaity on 'OK' action
when others.
endcase.
endcase.
Hope this will help full to you..
Regards,
Nagendra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Rafi,
I would better recommend design a new screen as FORM and use the standard FPM events for buttons OK & Cancel.
You might have written some logic to handle the OK & Cancel button functionality in feeder class of FORM something like below.
Keep a breakpoint and check if any of the attributes are null in below code.
DATA:
lo_event TYPE REF TO cl_fpm_event.
IF mv_content_area_id IS INITIAL.
"no pop up in generic content area
"do not trigger event for destroing the content area in this case
RETURN.
ENDIF.
* Close dialog
CASE iv_event_id. "mv_triggering_event.
WHEN cl_fpm_event=>gc_event_close_dialog_box.
lo_event = cl_fpm_event=>create_by_id( /scmtms/if_ui_cmn_c=>sc_action-dialog-close_dialog ).
lo_event->mo_event_data->set_value(
EXPORTING
iv_key = /scmtms/if_ui_cmn_c=>sc_action_param-fpmobject-content_area
iv_value = mv_content_area_id ).
mo_fpm->raise_event( io_event = lo_event ).
------
Let me know if you are not able to rectify the issue.
Thanks,
Bharath.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.