12-29-2015 7:34 AM
Hi All,
I am using method CL_GUI_BARCHART->create_chart to create the chart on screen and passing parameter "SIZE" to define its height.
is there any way to get the current size of this chrat so that when user leave the application, I can store this value in table and next time when he opens the application, this stored value can be set back.
User wants to retain the layout changes for next subsequent times he logs in.
Please help.
Thanks & regards,
Arvind Patel
12-29-2015 8:20 AM
Hi,
maybe you can use the Method get_height of class cl_gui_control.
cl_gui_barchart is a subclass of cl_gui_control.
regards.
12-29-2015 9:05 AM
Hi Thomas and Anjan,
I already tried this method. this is not returning any value. i am able to get width of column by "settings" parameter of GRAPHIC_PAI method but not height.
Thanks & Regards,
Arivnd Patel
12-29-2015 9:34 AM
Hi,
have you tried something like this:
DATA lo_barc_control TYPE REF TO cl_gui_barchart.
DATA lo_gui_control TYPE REF TO cl_gui_control.
DATA lv_height TYPE i.
lo_barc_control->get_parent( IMPORTING parent = lo_gui_control ).
lo_gui_control->get_height( IMPORTING height = lv_height ).
Thx.
12-29-2015 9:44 AM
Yeah Thomas, This also did not work. However i dont want to get the height of parent control, i have 3 barcharts (gantt) on same screen and want to get the height of each one to set in the next run.
Thanks & Regards,
Arvind Patel
12-29-2015 8:27 AM
you may call get_height as this gets inherited from the generic cl_gui_control class .But I think it will give the height of the container GRAPH instead of actual Bar.
Anjan
12-29-2015 9:23 AM
Hi,
use the method SET_HEIGHT to set the height of the graph, then use get_height,it will return the value.
Hope this helps.
12-29-2015 9:46 AM
Hi Sundar,
SET_HEIGHT is not working. whatever the size passed in Creat_chart method is what being reflected on screen. I called set_height method after creat_chart method with different height, but its not getting reflected.
Get_height still did not return any value.
thanks & Regards,
Arvind