on 12-09-2013 3:46 AM
Hi,
In my custom application I have created 2 buttons and created 2 different dialogue boxes in the FPM configurator.
For each button in the FPM Configurator, I have assigned the relevant DIALOG BOX ID and assigned the FPM event ID as FPM_OPEN_DIALOG.
The issue now is, I am getting only the first assigned dialog box in the popup even for the Second button.
Please let me know if I am missing any settings.
Eg : First button ----> Dialog box 1 ( Assignment )
Second Button ----> Dialog box 2 ( Assignment )
Result
First Button ----> Dialog box 1 is called
Second Button ----> Still the Dialog box 1 is called.
Thank you!
HI Chitibabu,
In get_data method use IO_EVENT->MV_EVENT_ID to get which button is clicked.
And based on the condition call your Dialog box using be below code.
DATA: "lo_fpm TYPE REF TO if_fpm,
lv_window_id TYPE fpm_dialog_window_id,
lo_fpm TYPE REF TO if_fpm.
lv_window_id = 'PAGE_2'.
lo_fpm = cl_fpm_factory=>get_instance( ).
lo_fpm->open_dialog_box( EXPORTING iv_dialog_box_id = lv_window_id ).
PAGE_2 is the id replace with corresponding ID.
Thanks and Regards,
Ragavendra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, Solved myself...
There are 2 methods to achieve this using configuration.
==> Create a dialog box and assign relevant UIBB or GUIBB
==> Now create a button and provide the event id as FPM_OPEN_DIALOG and in the Enter event parameters section, pass 'DIALOG_BOX_ID' as parameter name and Dialog box id value ( ie. Page id of dialog box) as Parameter value.
It will work.
2nd Approach
==> Create a dialog box and assign relevant UIBB or GUIBB
==> Now create a button and provide the event id as FPM_OPEN_DIALOG and in the Target Page assing the value of Dialog Box Page ID.
This will also work.
Note : DIALOG_BOX_ID is a constant and should not be changed... I was passing different value so it was not working for 2 different buttons. ( IF_FPM_CONSTANTS=>GC_DIALOG_BOX-ID )
HI Chitibabu,
Just check your event id, of the button you have assigned and capture the event id in the Process_event_id method. Its not a major mistake i think just cross check all the thing( Event ID, Dialog Window Web Dynpro name & refresh all the Internal table if they are defined globally)
For other solution share your code.
Regards.
Nishant Bansal.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nishant,
I have not written any code.. I am calling the dialog box through only configuration..
We can call the dialog box throug cofig aswell as writing the code in the relevant methods.
I am calling the dailog box through config itself. Here we don't require any coding part.
Please let me know if any additional setting is missing in config.
Thank you!
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
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.