We have several customizations that send AGS calls from a ESS form. Prior to 9.0, this would work with the following:
// build ags call for effective date validation var vAGScall = "?_PDL=" + authUser.prodline; vAGScall += "&_TKN=ZZPS.1&_LFN=ALL&_RTN=DATA&_TDS=IGNORE&_OUT=XML&_EVT=CHG&FC=I"; vAGScall += "&FR-DATE=" + vDate + "&ERROR=Z&_EOT=TRUE";
// send ags call to the server var vAGSInfo = top.httpRequest(top.AGSPath + vAGScall); if (vAGSInfo.status){ alert("Error in AGS call to check for payroll sunday."); return false; }
Now on LSF9 this call fails with a javascript error 'access denied'. I know there are some API's for authenticating with LSF9, but should I need to use those considering this is coming from a session that is already authenticated? Also, I'm guessing the top.httpRequest no longer works.
Any input on how to make this work in the new world?
Thanks, JW
Actually the AGS call is getting built correctly. The variables work fine (I have alerted it to death and see the transaction as it should be). The access denied error happens when it is submitted.
I get "portalWnd" is undefined.
Should I be declaring that somewhere?