Hi All. I have 2 custom records with parent-child ...
# advancedpdf
n
Hi All. I have 2 custom records with parent-child relationship. I am trying to print the child sublist on the PDF using record.recmachcustrecord_recordid but it is not showing up.
z
It is a limitation. Referring to SA: Currently there is no possibility to directly include child Custom Record entries in the printouts utilizing Advanced PDF/HTML Templates. This is being tracked under Enhancement 304767. As an alternate solution it is possible to create a beforeLoad User Event Script that will search over the custom subrecord entries and get the results into a custom field as JSON object. Then the Freemarker can parse the custom field content and build a HTML table in the printout. See the SAs
j
Thanks @Zeeshan you just saved me a ton of time.
👍 1
z
What you can do as a workaround is to create a sublist in the print context in beforeload user event script and populate the sublist data according to your needs. It will be available in the PDF.