var value is not passing to function without first showing an "alert()"
I am retrieving a value from a form
var programName = xfa.resolveNode("form1.page1.subApprovedTrainingNAC.subEd[" + oWrapper.index + "].educationInstance.lstPrograms").rawValue;
when I attempt to pass it to my function
callRestService(url,lstPrograms,programName);
the function receives it as null
However if in between the two statesments I have
alert("programName before click call: " + programName);
then the value is received correctly.
How can I get value to the function with the value without showing the alert?