on 10-29-2013 5:06 PM
Hi All,
I am trying to use Ajax post to get xacute query output in xml format. Thing is its not overriding the parameters assigned. It always gives defaulted output from static input provided in xacute query.
Please see the code snippet below.
function getXmlData(startDate,endDate,shiftVal,vMachType,MachID,MachGroup,vPlantId)
{
var urlPath="http://IP:port/XMII/Illuminator?QueryTemplate=/XaqCalcChartData&Content-Type=text/xml";
$.ajax({
type : "POST",
url : urlPath,
datatype : "xml",
data:
{
Param1:startDate,
Param2:endDate,
Param3:shiftVal,
Param4:vMachType,
Param5:MachID,
Param6:MachGroup,
Param7:vPlantId
},
async: false,
beforeSend: function()
{
},
error: function()
{
alert('Error');
},
success: function(xml)
{
alert(xml);
......
........
Can anyone help me on this.
Thanks,
Padma
I think parameters passed with the data property are put in the post document body while the MII service is looking for them only in the URL parameters (e.g "<url>?&Param.1=x&Param.2=y" etc.. ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Christain, I tried passing param in url too as below, will get xml output but still getting default param output.
Is there is any other way to get xml output from xacute, Infact my requirement is to pass the xml output.
User | Count |
---|---|
11 | |
6 | |
1 | |
1 | |
1 | |
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.