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?

Rookie Asked on October 10, 2020 in How To's.
Add Comment
2 Answer(s)

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>

Rookie Answered on October 10, 2020.
Add Comment

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.

Advanced Answered on October 11, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Limebox   Become a Sponsor   Become a Sponsor