on 07-29-2015 7:40 AM
Hi ,
Static Popup in FPM can be created by adding Dialog Box and then embedding Form GuiBB and passing data to this from the feeder class. However I want to dynamically create a Popup with Input fields and dropdown menus in it in Floor Plan Manager. Please let me know if this is possible in FPM.
Regards,
Vicky
Hi Vicky,
this is indeed possible to do, though it is not quite easy. As I first step I would really recommend to add a static popup to a OVP floorplan and see how it works in general (this is temporarily and it is just for the purpose that you get familiar with the popup functionality as such, because once you understand that, it will be much easier for you to implement it dynamically).
Then once you know how to add a popup statically, remove it and start trying it dynamically. Here are the rough steps how to do this:
1. You need to get access the OVP configuration API (IF_FPM_OVP). Just google "AppCC if_fpm_ovp" and see how this is done.
2. Once you have that interface then: First you need to create a new OVP page. This is done by
method ADD_CONTENT_AREA. There you have to populate the parameter IS_CONTENT_AREA.
The most important attributes are ID and type. Just give a ID as wish and the type must be of
course "DIAL" for dialog box.
3. Now you have new page area of type dialog box in your OVP floorplan. Of course next step
is to fill it with content. And in terms of FPM content always means UIBB or UIBBs. This is
done with the method ADD_UIBB.
4. Last but not least, at runtime you need to call the dialog. But this is the same procedure as
the popup would be static.
That's it. It is a very rough description, hope it helps.
Kind regards,
Ulrich
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ulrich,
As per your suggestion created a dialog and embedded a form uibb into it. Added Input fields from its a feeder class . Used Open_Dialog_BOX API to invoke the Dialog Box. But throws an error coz the issue is I need to deactivate all the Windows in nwbc and then invoke the popup. Following is the Code to Invoke Popup : Need a code snippet to deactivate all windows in NWBC.
DATA lo_fpm TYPE REF TO IF_FPM.
data ls_props type fpm_s_dialog_box_properties.
ls_props-title = 'Test Dialog'.
LO_FPM = CL_FPM_FACTORY=>GET_INSTANCE( ).
LO_FPM->OPEN_DIALOG_BOX(
exporting
IV_DIALOG_BOX_ID = 'Zdialog_id'
IS_DIALOG_BOX_PROPERTIES = ls_props ).
Hello Vicky,
You can achieve your requirement by doing necessary steps mentioned in this doc.
Please go through this,
Regards,
Balanand
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.