hello everyone, would anyone know how to reference...
# general
u
hello everyone, would anyone know how to reference a sublist item within an if statement in Advanced PDF source code? I'm currently trying to access the first line in the "Items" sublist within a Price Quote record. I've tried the following:
<#if item.taxcode == 6>"VAT INCLUSIVE"</#if>
<#if {item.taxcode} == 6>"VAT INCLUSIVE"</#if>
<#if record.item.taxcode == 6>"VAT INCLUSIVE"</#if>
to no avail. I can reference body fields just fine, but sublist fields are always a pain.
l
This might help you: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4454208098.html&amp;whence=#bridgehead_4454227137 Did you use the list functionality? This might help you: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4454208098.html&amp;whence=#bridgehead_4454227137 Did you use the #list functionality? e.g.
<#list record.item as item>
${item_index} ${item.itemName@label} ${item.itemName} --- ${item.amount}
</#list>
1
u
Hi @Lee Hopper, thanks for your input. The second link worked perfectly for what I needed. I actually used the #list functionality, but for this specific use-case scenario, I just needed to pull out the first item's field in the sublist. thanks.
🙌 1