I am having issues trying to use getattachrec.exe to get the URL for our invoice image. Here is what I have and the error I am getting.
//code for getattachrec.exe var x = "http://lawson.fbfs.com:7740/cgi-lawson/getattachrec.exe"; x += "?_OUT=XML"; x += "&_PDL= TRAIN9"; x += "&_FN=APINVOICE"; x += "&_IN=APISET1"; x += "&K1=" + vComp; x += "&K2=" + vVen; x += "&K3=" + vInv; x += "&K4=" + vSuff; x += "&K5=" + vCanSeq; x += "&_ATYP=U"; x += "&_AUDT=I"; x += "&_USCH=HTTP"; x += "&_KS=zz"; x += "&_OPM=A"; x += "&_DATA=TRUE"; alert(x);
//Return value from call var objhttp=portalWnd.objFactory.createInstance("http"); //var objhttp = new ActiveXObject("Msxml2.XMLHTTP") objhttp.Open("GET", x, false) objhttp.Send("UserInfo")
//Display value from call var vURL = objhttp.responseTEXT alert("URL:" + vURL) Please see attached document with values of 'x' and 'URL' along with error message. Does anyone have any thoughts on what I am doing wrong? I have tried several different ways of doing this procedure but this seems to be the closest I have come. Any help would be much appreciated. Thanks!