I am trying to reference this part of a sales orde...
# advancedpdf
k
I am trying to reference this part of a sales order to display in an advanced/pdf. I have also created this code. I know that on the record object you can drill down to a field but I dont know what the field is called for component needed. I have used the json viewer extension and nothing seems to make sense. My last guess was using "customsublist47" but that did not display in the json viewer extension. <#if record.customsublist47?has_content>
Copy code
<table style="width: 45%; margin-top: 10px;">
                <#list record.customsublist47 as component>
                    <#if item_index==0>
                        <thead>
                            <tr>
                                <th align="center" colspan="3" style="padding: 10px 6px;">${component.item@label}</th>
                                <th align="center" colspan="1" style="padding: 10px 6px;">${component.sumofquantity@label}</th>
                            </tr>
                        </thead>
                    </#if>
                    <tr>
                        <td align="center" colspan="3" line-height="150%">${component.item}</td>
                        <td align="center" colspan="1" line-height="150%">${component.quantity}</td>
                    </tr>
                </#list>
            </table>
        </#if>