I can’t find an exact answer to this question anyw...
# advancedpdf
m
I can’t find an exact answer to this question anywhere, so I thought i’d ask the experts here. I need to create a custom label PDF printout for an item assembly build. No lot numbers, just the item and code. One label per page and they can choose how many to print. I simply want a custom button on the assembly build and when clicked, opens up a new tab to a custom PDF layout. I don’t see anything in Netsuite help that simply explains this. I saw a suitescript render() function, but not sure if I need that. How is this accomplished? Thanks.
d
if not for "they choose how many to print", it would be more straight-forward Having said that, here's one way can be done: • UE script adds a custom button during beforeLoad • Button points to a Suitelet that either: ◦ Opens in a new window ◦ Opens as a popup (have done this before, little more complicated) • Suitelet give the user a form they can enter the quantity of labels on • On submit, suitelet feeds the Assembly Build record and the qty into a PDF template and displays/posts back the resulting PDF
One simplification you could do, if it's agreeable to the end users: If they're already using the browser's/system's print modal, why not always render a single label and have them enter a quantity in the print dialog?
That way your Suitelet can just print the record to pdf without having to faff around with a suitelet UI form
m
This is encouraging. I’ve done suitelets for other things, so maybe i got to read up on that because i can’t visualize how it would work. Do you have any specifics on what or where to look to get my footing on this process?
d
Yes, have a read of this thread/my post with the links
m
Thanks buddy! You’re the best! I’ll let you know how it goes.
d
please do, I look forward to it =]