Print a custom record, including specified sublists, on an advanced PDF template
I have a custom record with sublists for SOs and POs that are associated to the custom record. I need to print this record with the “header” data as well as the sublists organized into sections. Does anyone have tips or sample code for this use case?
I tried this but didn’t get it to show. Code is validating, but sublist not printing.
ID of the saved search is customsearch_load_plan_pickups
any ideas?
<#if record.customsearch_load_plan_pickups?has_content><table><#list record.customsearch_load_plan_pickups as pickups><#if pickups_index == 0>
<thead>
<tr>
<th>${pickups.vendor@label}</th>
<th>${pickups.pickupaddress@label}</th>
</tr>
</thead>
</#if><tr>
<td>${pickups.vendor}</td>
<td>${pickups.pickupaddress}</td>
Learn to recognize the different Sublist Types. Only the ones that support suitescript will be printable from an advanced pdf template. If it does support suitescript, then it is probably a sublist created via a parent/child relationship and the ids involved will match the Custom Child Record Sublist IDs Overview.