Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Don’t miss your chance to meet our SuiteGurus—NetSuite Support professionals and subject matter experts with extensive experience in select product areas, including OneWorld, Advanced & Basic Accounting, Supply Chain Management, Receivables & Payables, CRM, Account Administration, and the SuiteCloud Platform. Full Conference attendees can prebook exclusive 30-minute one-on-one sessions for your product questions.
Spots are limited! Register through your Agenda Builder and find SuiteGuru under Agenda Enhancements.
Printing search results as a pdf using advanced html template
I think I am missing something as this code works without any errors, but the only thing the page contains is "render.TemplateRenderer". Any insight would be helpful
/**
* @NApiVersion 2.x
* @NScriptType Suitelet
*/
// This sample shows how to render search results into a PDF file.
define(['N/render', 'N/search', 'N/file'], function(render, search, file) {
function onRequest(options) {
var request = options.request;
var response = options.response;
var SOsearch = search.load({
id: '2277' //'customsearchitem_label_print' //the ID of the saved search
});
var resultSet = SOsearch.run();
var results = resultSet.getRange(0, 10);
//var results = SOsearch.getRange(0, 100);
//var xmlTemplateFile = file.load('Templates/PDF Templates/invoicePDFTemplate.xml'); //this will be the template file filepath