on 03-06-2013 1:43 PM
Hi All,
My requirement is to render 4 SVG images and display in the UI without saving those in the server.
I tried using XMII Runner with the syntax "/XMII/Runner?Transaction=<Trx Path>&OutputParameter=<Parameter1>&Content-Type=image/png" and it gives me desired result in my irpt.
My problem is, since I want to have four outputs from this transaction, if I give the above syntax four times to output one parameter at a time the transaction is executed every time and the four values which should correspond to each other changes after every execution.
Is there any way to have multiple output params in the XMII runner? Or is there any way to execute the transaction only once and capture all the four values?
Please suggest!!
Regards,
Anuj
There are multiple ways you can use to return more than one encoded images text .
And parse that xml OP and get the encoded text separately.
Ex: define XML with two columns ( svgindex,svgtext) and append your OP to that XML.
Define OP parameter of XML.
user same type of url but the Content-Type would be text/xml.
Once you get the result at client side ( you need to use ajax call to that URL to get XML) ,parse that using DOMXML to get the each encoded image text separately.
Hope this helps.
Thanks,
Hari
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Anuj,
These pointers might help you.
http://help.sap.com/saphelp_mii122/helpdata/en/4c/c8e2a88e9b60c5e10000000a15822d/content.htm
http://www.w3schools.com/ajax/default.asp
http://www.w3schools.com/ajax/ajax_xmlfile.asp
http://www.w3schools.com/dom/default.asp
Once you get the encoded text in XML,parse it to get each node and set the image src...
<img src="data:image/png;base64, encoded text" />
I believe you set the image src using javascript : imageobj.src = encodedimagetext.
Thanks
Hari
User | Count |
---|---|
8 | |
7 | |
3 | |
2 | |
2 | |
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.