Discussions

Check out Oracle NetSuite upcoming events and conferences here
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!
Update your Profile with your Support type to get your Support Type badge.
Expand your NetSuite knowledge by joining our Ask A Guru Live sessions. RSVP on this event now.
Get ready to take on exciting new challenges and become the next SuiteMaster of the Month!
Join the largest gathering of the NetSuite Community at SuiteWorld in Las Vegas, September 9-12! Discover cutting-edge innovations, attend insightful sessions, network with industry leaders, and elevate your business to new heights. Register here!

How to Create Custom Action via SuiteScript That Does Print, Print Label and Print Item Label in One

edited Mar 3, 2023 3:27PM in Ask A Guru 8 comments

Hi.

I tried to do this mentioned in the SuiteAnswers with the ID 92846, The but I am getting an error

I tried used the two SiuteScripts versions and get the same error. I slight modified the script for the version 2.0 as you see here:

/**

* @NApiVersion 2.x

* @NScriptType ClientScript

*/


define(['N/record'], function(record) {‌

      function printMeNow() {‌

        var id == record.id;

        show_preview(document.forms['main_form'].orderid.value, id); //Standard Print Button on Item Fulfillment

        print_shipping_label(document.forms['main_form'].orderid.value, id); //Standard Print Label Button on Item Fulfillment

        window.open('/app/accounting/print/barcodeprinter.nl?trantype=itemfulfillment&tranid=' + id); // Standard Print Item Labels Button on Item Fulfillment

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!

Leaderboard

Community Whiz

Quarter 3 (Jul-Sep 2024)

This Week's Leaders

This Month's Leaders

All Time Leaders