cancel
Showing results for 
Search instead for 
Did you mean: 

FPM_CLOSE_DIALOG not triggered when closing dialog box

Former Member
0 Kudos

We have an FPM application where a Dialog Box has been defined. The dialog box is triggered by an event - handled in the componentcontroller method PROCESS_EVENT of the main application.

The dialog box is opened as follows:

DATA l_o_fpm TYPE REF TO if_fpm.

l_o_fpm = cl_fpm_factory=>get_instance( ).

CASE io_event->mv_event_id.

WHEN 'OPEN_POPUP'.

l_o_fpm->open_dialog_box(

EXPORTING

iv_dialog_box_id = 'POPUP2' "ID of Popup window

).

This triggers correctly an FPM_OPEN_DIALOG event, but when the popup is subsequently closed, the FPM_CLOSE_DIALOG event is never fired.

We have tried triggering our own events from within the popup (in the view's WDDOEXUT method, for instance). In this case, the main componentcontroller's PROCESS_EVENT detects our custom event, but not the FPM_DIALOG_CLOSE. Using the latter is a prerequisite for checking which button was used to close the Dialog Box (OK or Cancel), but this is something we cannot currently do...

We have tested this behaviour in 2 separate applications, but the event is never triggered.

Any input (or similar observations) are higly appreciated!

Regards,

Trond

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Trond,

We are observing similar behavior.

Could you please share how you solved this problem?

Thank you,

Nidhi

Former Member
0 Kudos

Hi,

There is only one scenario in which FPM_CLOSE_DIALOG won't trigger. That is when the buttons were not configured from the configuration in FPM Component. If the OK and Cancel buttons are a part of your View Design you need to trigger the event through code.