Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
Print inventory detail (expiration date) on an Item Fulfillment pdf form - script
Hello,
I'm trying to run a script for some reason is not working. I'm following the instructions from SuiteAnswer: ID 49137 - but so far, I'm not getting anything on the form, but also, I'm not getting any errors.
This is the script I have:
http:///**
*@NApiVersion 2.x
*@NScriptType UserEventScript
*/
define(['N/record', 'N/search', 'N/ui/serverWidget'], function (record, search, serverWidget) {
function beforeLoad(scriptContext) {
try {
if (scriptContext.type == 'print') {
var currentRec = scriptContext.newRecord;
var recid = currentRec.id;
columns[0] = search.createColumn({
name: "item",
join: "item",
sort: search.Sort.ASC,
label: "Name"
});
columns[1] = search.createColumn({
name: "itemid",
join: "item",
label: "Internal ID"