Noob question here...I need to use an advanced PDF template to print off results from a saved search. However the search I am trying to print cannot be built with a single search, I need a developer to create a script which creates a page combining the results of the searches. Can I print an advanced PDF from that developer-created search results screen?
s
suitedev
01/29/2020, 6:24 PM
Would need to be a Suitelet script to run the searches, compile the results, and render the PDF.
e
Eric B
01/29/2020, 6:24 PM
Yes you can script the searches and combine them into a single JSON object and use the JSON object as your datasource.
👍🏼 1
b
Brian
01/29/2020, 6:37 PM
Thanks @suitedev. So it would not be an advanced PDF template that generated the PDF, it would be the script?
s
suitedev
01/29/2020, 6:38 PM
You can use an Advanced PDF Template to render the PDF, but as Eric said, you would first need to create the JSON Object and provide it as a data source.. That is the most direct path.
b
Brian
01/29/2020, 6:39 PM
Thanks to you both!
e
Eric B
01/29/2020, 6:40 PM
Yes just think of it as a mail merge. You have a template and you have the data that will be merged with the template substituting the data with the placeholders on the template.