How to link Advance PDF to print Button via scripts
Dear Community member
Please can anyone help how to link Advance PDF to print Button via scripts?
Best Regards
Your options are to add a print button to the form using Form.addButton from a user event script before load entry point or Custom Action on your record’s form.
The pure suitescript option would have you open a new window to a suitelet that writes a file generated via N/render. If you are willing to go through the javascript of netsuite’s print button, you can probably figure out how it generates the url to do its printing and generate that url yourself instead of making your own suitelet. I personally would expect making your own suitelet to to be easier that going through NetSuite’s code.
Hi
thanks you very much for your help, I appreciate it a lot if you can share a javascript example
Thanks, Best Regards
You will probably want to start at the linked documentation to get started on the parts that you will need to put together