cancel
Showing results for 
Search instead for 
Did you mean: 

Dashboard with SVG graphic

Former Member
0 Kudos

Dear,

I'm having trouble generating a dashboard that uses the SVG graphic

I put the following code in html page referring to the graphic of SVG

<APPLET NAME="Untitled" CODEBASE="/XMII/Classes" CODE="AnimatedObject" ARCHIVE="illum8.zip" WIDTH="170" HEIGHT="170 " MAYSCRIPT>

<PARAM NAME="QueryTemplate" VALUE="ENDEAVOUR_DEV_TECH/Dashboards/Sinter/Queries/QUERY_SinterChemicalAnalysis">

<PARAM NAME="DisplayTemplate" VALUE="ENDEAVOUR_DEV_TECH/Dashboards/Sinter/Visual_Components/SVG_PercentGauge">

</APPLET>

But the graphic is not showing in Internet Explorer.

I get the following error:

load: class AnimatedObject not found.

java.lang.ClassNotFoundException: AnimatedObject

at sun.applet.AppletClassLoader.findClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.applet.AppletClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.applet.AppletClassLoader.loadCode(Unknown Source)

at sun.applet.AppletPanel.createApplet(Unknown Source)

at sun.plugin.AppletViewer.createApplet(Unknown Source)

at sun.applet.AppletPanel.runLoader(Unknown Source)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

Caused by: java.io.IOException: open HTTP connection failed.

at sun.applet.AppletClassLoader.getBytes(Unknown Source)

at sun.applet.AppletClassLoader.access$100(Unknown Source)

at sun.applet.AppletClassLoader$1.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

Can you help me?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sergio,

1- Create a transaction that generates image form animation renderer and image saver action.

2- Schedule transaction

Periodically running transaction saves image with same name but different measure (For example: web:
WEB\SpeedoMeter.gif)

3- Create irpt file and use javascript to refresh image

Regards.

Former Member
0 Kudos

Hi folks,

I followed the document http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/5952. [original link is broken]

In step 5 of this document I put the following code:



How do I create the link with query QUERY_SinterChemicalAnalysis and the image of SVG?

Regards,

Sérgio Salomã

sidnooradarsh
Contributor
0 Kudos

The Query Template mentioned in Step 5 is a Xacute Query which calls a BLS transaction in turn it will render an animated Object for you.

Former Member
0 Kudos

Hi cml_bzl,

How can I use javascript to refresh image?

Regards,

Sérgio Salomã

sidnooradarsh
Contributor
0 Kudos

if you look at this blog [Get started with Dynamic Graphics in xMII 11.5|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/5952] [original link is broken] [original link is broken] [original link is broken];

In Step 5 itself a Javascript Code is provided a Javascript function

function doit()

this function will call the Xacute Query at an interval of every 1000 milliseconds,every time the Xacute Query is called it will send out latest data and it will refresh the image.

Use the JavaScript function provided in the blog and adjust code with your Xacute Query and Image name

Hope this helps!!

Regards,

Adarsh

Former Member
0 Kudos

I have seen this code but it did not work.

Any idea?

sidnooradarsh
Contributor
0 Kudos

I just tested the code and it works fine.

Are you getting any errors?

Just make sure you have given proper image path in BLS and also in irpt page.

Answers (2)

Answers (2)

Former Member
0 Kudos

may be [this post |http://searchsap.techtarget.com/tip/Getting-started-with-Dynamic-Graphics-in-xMII-115] (though its for 11.5) will help you understanding svg graphics and there use in MII.

Best Regrads,

Musarrat

jcgood25
Active Contributor
0 Kudos

I assume you hand typed this, because the code="AnimatedObject" is invalid. You're confusing the java applets with SVG images. The rendering for SVG images is done inside the Workbench in a transaction and showing the eventual picture on a web page is normally done with a standard html img tag referencing the image file.

http://help.sap.com/saphelp_xmii120/helpdata/en/44/7a871adb0b6573e10000000a11466f/frameset.htm