I am getting the following error message when I attempt to generate a php page from a template - "Please select one and only one form entry to generate from".The code I have written is as follows...function handleGenerate(dcrPath){//alert("handleGenerate");var item = IWDatacapture.getItem(); httpObj = getHTTPObject(); //alert(httpObj); var xmlRequestValue = item.getValue(); //alert(xmlRequestValue); httpObj.open("GET", "http:=" + xmlRequestValue, true); //alert("open"); var throwaway = httpObj.send(); //alert("send"); //alert(httpObj.responseText); var filepath = "/htdocs/" + httpObj.responseText + "index.php"; alert(filepath); IWPageGeneration.setOutputFile(filepath, true); return(true);}Microsoft script debugger was throwing an error on the line "var filepath"
thanks.I've replaced the true in this line "httpObj.open("GET", "http:=" + xmlRequestValue, true);"with false, and it works. I guess I have turned my asynchronous call to a synchronous one!