2014 May 12 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
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
2014 May 13 4:31 AM
2014 May 21 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
2014 Aug 06 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:
2014 Aug 06 6:00 AM
Hi,
Well, what about CL_IGS_CHART_ENGINE - it should work just fine without the GUI, I believe...
cheers
Jānis
2014 Aug 06 6:14 AM
2014 Aug 06 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
2014 Aug 06 6:51 AM
Hi,
Thanks I will do some testing.
Have a nice holiday.
Regards.
2014 Aug 07 8:19 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |