on 12-02-2011 12:31 PM
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
Hi Trond,
We are observing similar behavior.
Could you please share how you solved this problem?
Thank you,
Nidhi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.