cancel
Showing results for 
Search instead for 
Did you mean: 

Animation object

Former Member
0 Kudos

HI All

I am new to MII can anyone please help me with steps required to pass the tag query to animated object and display it as output

to get the speed of motor.

and how to get in Xacute graph.

Regards

Sandeep

Accepted Solutions (1)

Accepted Solutions (1)

former_member211944
Active Participant
0 Kudos

Hi Sandeep,

Have a look at the following blog by Abesh.

Getting started with Dynamic Graphics in xMII 11.5

Also have a look at the following thread:

This would tell you the exact steps needed.

Regards,

Rohit Negi.

Former Member
0 Kudos

Hi Rohit

I imported 3Dguage SVG object but when I try to  save I get error as "File is invalid for the target location"

I am working on MII 14.0.Please help me out on this

Regards

Sandeep

former_member211944
Active Participant
0 Kudos

Hi Sandeep,

Are you importing the file in the Catalog Section of the Menu?

If no then you will get this exception.

Regards,

Rohit Negi.

Former Member
0 Kudos

Hi Rohit

Yes I am importing the file in the catalog section

Regards

Sandeep

Former Member
0 Kudos

Hi Sandeep,

Please refer the solution I have given in the other thread and give it a try.

Regards,

Anuj

Former Member
0 Kudos

Hi Anuj

I have built as per the blog

http://scn.sap.com/people/abesh.bhattacharjee/blog/2007/02/27/get-started-with-dynamic-graphics-in-x...

but what is the path that I need to give in image saver step and how can it be fetch in applet code .

whether I can give my desktop path?

Regards

Sandeep

Former Member
0 Kudos

Hi Sandeep,

Please follow the below steps to save the image file:

1. In Image Saver action block go to 'Configure Object' and give the path as db://<Path>/<FileName>.png

(you can use any picture format like jpg,gif)

2.Go to links of Image saver action block and map the 'EncodedImage' of animated object to the 'EncodedImage' of image saver.

This will save the image in the path you have specified in WEB tab.

To get this image on your page, you can use the illuminator service to directly call this transaction with the following syntax.

(Please note that the image can be directly rendered on the page using the syntax below without even saving the image as in the steps above. You need to take the EncodedImage of the animated object action block as an output parameter of type STRING)

var imgSrc = "/XMII/Runner?Transaction=<FULL TRANSACTION PATH>&StartDate="+dateFrom+"&EndDate="+dateTo+"&OutputParameter=EncodedImage&Content-Type=image/png";

document.getElementById('sampleImage').src = imgSrc;

'StartDate' and 'EndDate' are transaction's input parameter and 'dateFrom' and 'dateTo' are the javacript variables, which depends on your requirements as to how many and parameters you want to pass to the trx.

'EncodedImage' in the syntax is the output parameter defined in the trx.

Regarding saving the image in desktop, I am not sure as have never tried it. 🙂

Thanks & Regards,

Anuj

Former Member
0 Kudos

Hi Anuj

Thanks very much..its working perfect.

Regards

Sandeep

Answers (1)

Answers (1)

Former Member
0 Kudos

Thanks Really Help ful