@margo you’ll need to loop through the search.result object and build your array of objects using this notation: template_variable_name : result[x].getValue(columns[y]) and then you can reference them in the pdf template as result.template_variable_name
wild that slack doesn't support markdown for links.
a
alien4u
05/08/2018, 9:10 PM
@stalbert How this work inside a PDF Template?
s
stalbert
05/08/2018, 9:12 PM
I don't know. Typically with PDF templates I'd build the JS outside the template then feed the result to the PDF generator. I don't think it prudent to do complex javascript inside any template, PDF or otherwise.
m
margo
05/09/2018, 3:35 PM
@alien4u, @Eric B, @stalbert I was able to switch around without the formula columns, and perform the same formula calculation in the freemarker. Thank You! for the help.