05-12-2014 11:56 AM
Hi All,
I am using CL_GUI_CHART_ENGINE class to display multiple graphs with custom container using splitter method ,when i am running it in foreground everything is fine i can print/save graphs seperatly.
If i use docking container to display CL_GUI_CHART_ENGINE will it run in background ?
My main problem is to send email with both graphs.
Is it possible to send email in background? if Yes please suggest a way.
As i have gone through many threads and i could'nt find the right way to do this.
Looking for some suggestions..
Thanks,
Pavan
05-13-2014 4:31 AM
05-21-2014 5:34 AM
Hi,
Is there any other option that i can run atleast bar graph in background and send an email by any other way,
Please suggest some methods to get this requirment done..
Thanks,
Pavan
08-06-2014 5:17 AM
Hi,
Have you consider using SVG ?
http://en.wikipedia.org/wiki/Scalable_Vector_Graphics
Regards.
From here:
http://bost.ocks.org/mike/bar/2/
Code:
<!DOCTYPE html>
<style>
.chart rect {
fill: steelblue;
}
.chart text {
fill: white;
font: 10px sans-serif;
text-anchor: end;
}
</style>
<svg class="chart" width="420" height="120">
<g transform="translate(0,0)">
<rect width="40" height="19"></rect>
<text x="37" y="9.5" dy=".35em">4</text>
</g>
<g transform="translate(0,20)">
<rect width="80" height="19"></rect>
<text x="77" y="9.5" dy=".35em">8</text>
</g>
<g transform="translate(0,40)">
<rect width="150" height="19"></rect>
<text x="147" y="9.5" dy=".35em">15</text>
</g>
<g transform="translate(0,60)">
<rect width="160" height="19"></rect>
<text x="157" y="9.5" dy=".35em">16</text>
</g>
<g transform="translate(0,80)">
<rect width="230" height="19"></rect>
<text x="227" y="9.5" dy=".35em">23</text>
</g>
<g transform="translate(0,100)">
<rect width="420" height="19"></rect>
<text x="417" y="9.5" dy=".35em">42</text>
</g>
</svg>
Result:
08-06-2014 6:00 AM
Hi,
Well, what about CL_IGS_CHART_ENGINE - it should work just fine without the GUI, I believe...
cheers
Jānis
08-06-2014 6:14 AM
08-06-2014 6:45 AM
There is get_image() which should permit to get the image... I have not tried it out yet (there is some code getting the bitmap here).
I'll try it after my holidays, time permitting, when I'm done with fixing parts of CL_RSPO_OUTPUT_RENDERER_OTF (seems another not quite finished, now dead end in SAP) in Z name space. I'm planning to extract Bitmap to OTF conversion logic from that class and enabling output of non BDS persisted images (SAP mime library and chart engine, among others) in smartforms. It should be easy job, via implicit enhancement in FM SAPSCRIPT_BITMAP_GET...
cheers
Jānis
08-06-2014 6:51 AM
08-07-2014 8:19 AM