on 09-14-2007 1:32 PM
Greetings,
Does anyone know how to save an iGrid as an image?
We have Chart action block which takes Query Template and Display Template (only Charts) as inputs and saves that chart as image with the help of Image Saver.
But for iGrid how to do this?
Thanks and Regards
Khaleel
Badeghar
Save as image is one of most used functions in real time business.
SAP-xMII supports a built-in method <b>String saveImage()</b>, which is used to get the URL reference to the GIF representation of the image being displayed by the current applet, and is only supported by the <u>iGrid</u>, iChart, and iSPCChart.
So to save iGrid Applet as image, you can use as follows:
Step 1: Create a Query Template & a Display Template with data as required
Step 2: In IRPT page (Javascript), use Applet (<Applet>...</Applet>) to show the applet with code = iGrid. This will display the desired data in iGrid Applet
Step 3: Put a button anywhere near the applet, which will call (using onClick) to save that iGrid as an image. Say the applet's name is MyApplet, then use the code in the calling function <b>document.MyApplet.saveImage()</b>.
This is easier and too simple task to save any applet (no matter it is iGrid, iChart or iSPCChart) using Javascript in xMII-based IRPT pages, while Business Logic Editor does support Charts and takes those as input image.
Regards
Som
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
12 | |
7 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.