Quantcast
Channel: SCN: Message List - SAP Manufacturing Integration and Intelligence (SAP MII)
Viewing all articles
Browse latest Browse all 4841

Re: How to invoke the MII URL(calling MII transaction) in background on click Post button from UI in javascript

$
0
0

Hi Ritim,

   You could check Using the XML HTTP Request object , XMLHttpRequest object and Using XMLHttpRequest - Web API reference | MDN . The basic syntax is as follows

 

Say you have a button with an onClick action calling post() method

 

function post(){

   var xmlHttp = new XMLHttpRequest(); //create req object. Note it could be different for IE lower than 7

  var url = "/XMII/RunnerTransaction=Transactionpath&input1=value1&input2=value2"; //build your URL

  xmlHttp.open("GET",url,true); //create the connection

   xmlHttp.send();  //send the request

}

Note: If you want to track the response, you could attach a listener to the request object.

 

Regards

Tufale Ashai.


Viewing all articles
Browse latest Browse all 4841

Trending Articles



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