I have a form that allows the users to select an applicant with a push button. The form then sends the user to an HR11 clone with the company and SSN. The default form for the GH11 looks for an inquire function with out an employee number. It then does an applicant lookup by ssn.
The problem is that the passed data is not getting to the second form. When I do an alert on the SSN for the second form, it is blank.
Here is the code from the two forms.
Derek, Thank you for the reply. That is similar to what I am doing, except I want to look up the applicant that is selected on one form and display his data on another. When the user clicks on the button from form one, i want to pass the SSN to form two and look up the data for that SSN on form two. For some reason the SSN is not making it to the second form, it's always blank. That is what I'm hoping someone here can help me with. Thanks, Mark.
Terry,
I changed the sending form to this: ---
//Send HR11EZ via GH11.1 var s = top.AGSPath + "/?_PDL="; s += portalWnd.oUserProfile.getAttribute("ProductLine"); s += "&_TKN=GH11.1&LFN=ALL&_RTN=DATA&_TDS=IGNORE&_OUT=XML&_EVT=CHG&_FC=I"; s += "&EMP-COMPANY=" + vCompany; s += "&FICA=" + vSSN; s += "&_EOT=TRUE"; //DisplayImageWeb();
alert(s); //Send API to the server portalWnd.httpRequest(s);
And the receiving form to this: ----
var sMsg = portalWnd.getVarFromString("pdl",portalWnd.document.location); portalWnd.cmnDlg.messageBox(sMsg);
I did try the ? - didn't work either.
Still getting blanks. I used pdl as a last resort, trying to get anything to display.