on 06-18-2013 6:37 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anuj
I have built as per the blog
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
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
Thanks Really Help ful
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.