If I try to edit and resave the template with no c...
# advancedpdf
j
If I try to edit and resave the template with no changes I now get this error...
---begin-message---
Syntax error in ?eval-ed string in line 1, column 8: Encountered "ipsum", but was expecting one of these patterns: "." ".." <DOT_DOT_LESS> "..*" "?" "??" "!" "[" "(" ")" <TERMINATING_EXCLAM> ---end-message---
k
Looks like it doesn't recognize eval as a function?
j
Not 100% sure I Agree - the data is there. I don't think it recognizes the data as a JSON object. I seen the freemarker whitepapers which warn to not use eval but eval_json instead.... but that errors as well
k
Your assessment seems likely. Try outputting the content of data to see what's in it. What are you trying to accomplish with eval? There's probably a NetSuite friendly workaround. It doesn't use all freemarker functionality even from the same version number.
j
Correct. I've inherited this and I'm moving precisely in that direction.
k
Looks like eval and eval_json are not present in NetSuite's version
Is it a scripted template? If so you can convert the string to an object in SuiteScript before passing it to the template
j
That’s what I’m hoping to do , if not I’ll pull the data myself. If it’s still there.- in progress…