HI all, is there a way to render an advanced pdf f...
# suitescript
n
HI all, is there a way to render an advanced pdf from a saved search on to a transaction record?
s
This can be done. The way I have done it is to create a custom advanced pdf template, combining both the transaction and the saved search, and then in a Suitelet or other script load both the transaction and saved search as data sources for the combined template Renderer. There may be other ways, such as combining two separately rendered PDF’s using a pdfset, or a User Event script that loads the saved search results into a field during the Print context, though I haven’t used these approaches myself.
n
For the options you have done, how did you combine transaction and saved search onto 1 advanced pdf template? Is it a the transaction record pdf?
s
I actually used an ftl file in the file cabinet, and the contents of the file are the freemarker template itself.
I started with a transaction template, then added the section for the saved search below it.
n
I kept getting this error: Error Parsing XML: The element type \"body\" must be terminated by the matching end-tag \"\"."
But when I look at the advanced pdf file, it has an end tag...