I want to print the result in particular item field?
Hi ,On itemchange it will execute an ipl file. The ipl will print in XML format.How to specify that I want to print the result in particular item field?Please advise.thanks.
Within IPL you have to use the following:<script language="JavaScript">var pFrame = top.opener.parent.getScriptFrame();print "pFrame.IWDatacapture.getItem(|itemname|).setValue(|valuetoset|);</script>Where, |itemname| would be the Xpath for the item in which value is to be updated and |valuetoset| would be the XML generated by your IPL.
print "
What's the print " for at the beginning of that line?I believe the entire script section would need to be "printed" to STDOUT (assuming this is a CGI script used as part of a CallServer or cgi-callout.