Hi There, I am working with Advanced PDF/HTML Tem...
# general
v
Hi There, I am working with Advanced PDF/HTML Templates, but I am facing a problem with adding a list that is a child record. Does someone know if it is possible to add a list (child record) to an Advanced PDF/HTML Template "<#list record.recmachcustrecord_something_here>" ?
d
You can do this using SuiteScript.
v
I want to avoid the use of suitescript
d
Are you working with a standard record?
v
yes, the sales order, but the child is a custom record that is a list
d
This is the full list of natively available data from the Sales Order in Advanced PDF Templates.
v
thanks bro, it seems that I need to implement a script
👍
d
You're welcome 👍, I believe you'll need to use the N/render module and pass in your own custom object loaded with the data you need.
v
yes, thank so much
w
You could also use a UE beforeLoad on Print -script where you add the data you want as a JSON in a custpage-field. You could then run field?eval. Note that it doesn't support null-values