Quantcast
Channel: SCN : Discussion List - SAP Interactive Forms by Adobe
Viewing all articles
Browse latest Browse all 1237

javascript in adobe forms

$
0
0

Hi experts,

 

I call a web service in javascript when button is clicked. Please help check the following code:

try {
xfa.host.messageBox("welcome");  //pop-up
var myRequest={Celsius:"50"};
var service = SOAP.connect( "http://www.w3schools.com/webservices/tempconvert.asmx?wsdl");
xfa.host.messageBox("Connected" + service); //pop-up "Connected[objectSoapService]"
for(var i in service) xfa.host.messageBox(i);    //nothing
var response = service.CelsiusToFahrenheit(myRequest);   
xfa.host.messageBox("Called");
xfa.resolveNode("TextField1").rawValue = response ;
} catch(e) {
xfa.host.messageBox(e.toString());    //pop-up "TypeError:service.CelsiusToFahrenheit is not a funciton"
}

 

 

Thanks.


Viewing all articles
Browse latest Browse all 1237

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>