ashu_vik - Friday, January 15, 2010 12:14 AM:
Hi All,
I am calling a web-service that returns a value to a texbox in Innovator. I am using a javascript method which is being called at "On-Click" event of a button. I am able to retrieve the values from the web-service into the textbox in Innovator. But the problem is that the new values set(from the web-service) does not persist on saving the form. The textbox is reset to the old value when the form is saved.
The code is:
var oXmlHttp = new ActiveXObject("MSXML2.XMLHTTP");
oXmlHttp
oXmlHttp
.setRequestHeader("Content-Type", "text/xml");oXmlHttp
.setRequestHeader("SOAPAction", http://abc.org/GetPartDetails);oXmlHttp
.send("<soap:Envelope xmlns:xsi='www.w3.org/.../XMLSchema-instance' xmlns:xsd='www.w3.org/.../XMLSchema' xmlns:soap='schemas.xmlsoap.org/.../'><soap:Body><GetPartDetails xmlns='Infosys.org/.../soap:Envelope>");oXmlHttp
.responseXML.setProperty("SelectionLanguage", "XPath");
document.getElementById('value').value = oXmlHttp.responseXML.selectSingleNode('//value').text;
Any suggestions to make the values persist on saving the form.
Best,
Ashu