04-15-2011 9:24 AM
Hello,
I created a program that displays graphics.
This program is similar to GFW_DEMO_PRES1.
The program works well.
I have been asked to save different layouts of the graph.
I ask if you can save multiple layouts and not an only layout.
Call method *IF_CUSTOMIZING~SAVE saves only a layout?
How do I save multiple layouts and how can I retrieve it?
Thanks.
CV
04-22-2011 1:14 PM
When you save the customizing, you save an instance.
You have to use get_bundle to retreive your data.
call method zgp_inst->if_graphic_proxy~get_cu_bundle
exporting
port = if_graphic_proxy=>co_port_chart
bundle_type = cl_cu=>co_clsid_values
key = l_key
importing
bundle = l_bundle.
if l_first is initial.
l_first = 'X'.
l_bun_sav ?= l_bundle.
endif.
But I think you have to get bundle for each class of the graphic.
Christophe
05-05-2011 8:43 AM
Solved it.
When I create the various objects (BUNDLE_DISPLAY, BUNDLE_DRAWING, BUNDLE_VALUES...) I get the pgmname (SY-REPID) as instance prefix (in INSTANCE_ID).
In this way you can save the layout for a specific user with method IF_GRAPHIC_PROXY~SAVE_CUSTOMIZING of class CL_GUI_GP_PRES.
The layout chart was saved in tables CFWCU*.
05-05-2011 8:44 AM