Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Please note that on Friday, March 20, 2026, at 8:00 PM Pacific time, our Case Management System will undergo a scheduled maintenance for approximately 4 hours. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
Form Suitelet Works in Firefox but not IE
I've got the following suitelet code that basically provides a form for uploading a file and then runs through and adds time records for all the lines in the uploaded file. A PDF report is generated and displayed on the screen. The problem is everything works great in Firefox, but in IE the PDF does not come up and it basically is throwing an error like the page does not exist.
function TimeImport(request, response) { if (request.getMethod() == 'GET') { var form = nlapiCreateForm('Upload File To Import', false); var params = request.getAllParameters(); var fileField = form.addField('file', 'file', 'Select File:'); fileField.setMandatory(true); form.addSubmitButton('Submit And Process File'); response.writePage(form); } else { var file = request.getFile('file'); file.setName(file.getName()); file.setFolder(86); var FileID = nlapiSubmitFile(file); ImportOneFile(FileID); var DeleteFile = nlapiDeleteFile(FileID); } } function ImportOneFile(FileID) { var xml = "<?xml version="1.0"?>n<!DOCTYPE pdf PUBLIC "-//big.faceless.org//report" "report-1.1.dtd">n"; xml += "<pdf>"; xml += "<head>"; xml += "</head>"; xml += "n</body>n</pdf>"; // Code here that process file and writes out lines of detail var file = nlapiXMLToPDF(xml); response.setContentType('PDF', 'TimeImport.pdf','inline'); response.write(file.getValue()); } 0