Anyone know why I can’t select fields from the “re...
# advancedpdf
c
Anyone know why I can’t select fields from the “related” records show in the field browser?
w
Don't remember off the top of my head how the wysiwyg editor handles it. But it is an array that you need to loop through like the item list. Maybe that's why you can't simply select them. I usually code it in the source view.
c
Yeah, I’m trying that too but unforunately it doesnt seem to render anything… Wonder if custom child sublists are not supported in Advanced PDF?
<#list record.recmachcustrecord_tr_transaction as line>
- ${line.id}
</#list>
w
But line.id isn't available according to the list of available values.
c
Every record has an ID as far as I’m aware? But I also tried the quantity field “custrecord_tr_quantity” and same issue
w
Don't know what dictates what values are available. But perhaps it is the "show in list" on the fields that controls it.
Ok, well that seems odd.
And you are sure that your custom link from another record actually shows values on the record you are trying to print?
c
Yep 100% the test record I’m using has related sublist values
w
Tested it, same thing here. Child sublists are empty in the default advanced pdf template.
🙌 1
c
Good to know, thanks for confirming. Looks like I’ll have to do it with a suitelet
w
Or with a suitescript in beforeload
c
Ah didn’t know that got triggered on PDF. Will give that a try
c
Thanks @Watz that ended up working perfectly!