<@U9HQ2HZ8R> you’ll need to loop through the searc...
# suitescript
e
@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
s
wild that slack doesn't support markdown for links.
a
@stalbert How this work inside a PDF Template?
s
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
@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.
s
jolly good!