Aria Ghahari
01/25/2021, 3:46 PM<#if record.item?has_content>
<table class="itemtable" style="width: 100%; margin-top: 10px;">
<!-- start items --><#list record.item as item><#if item_index==0>
I want to pull from the item record, a custom field (custitem6). When I add the following line <td colspan="2">${item.item.custitem6}</td>
the value for the custitem6 for the first item gets repeated for all items. instead of the following:
ITEM Custitem6
A ABC123
B DEF456
C GHI789
its displays:
ITEM Custitem6
A ABC123
B ABC123
C ABC123
Anyone know how to get around this?
Thank you!!nathanw
01/25/2021, 5:57 PM<td>
is within the loop, you could try
<td colspan="2">${item.custitem6}</td>
Aria Ghahari
01/25/2021, 6:13 PMitem.item.custitem
Aria Ghahari
01/25/2021, 6:16 PM<#if record.item?has_content>
<table class="itemtable" style="width: 100%; margin-top: 10px;">
<!-- start items --><#list record.item as item><#if item_index==0>
<thead>
<tr>
<th colspan="3" align="left">Qty. Required</th>
<th colspan="8">${item.item@label}</th>
<th colspan="8">${item.description@label}</th>
<th colspan="2">Units</th>
<th colspan="2">Test1</th>
<th align="right" colspan="8">${item.inventorydetail@label}</th>
</tr>
</thead>
</#if>
<tr>
<td align="center" colspan="3" line-height="150%">${item.quantity}</td>
<td colspan="8"><span class="itemname">${item.item}</span></td>
<td colspan="8">${item.description}</td>
<td colspan="2">${item.units}</td>
<td colspan="2">${item.custitem6}</td>
<td align="right" colspan="8">${item.inventorydetail}</td>
</tr>
</#list><!-- end items -->
</table>
<hr />
</#if><#if record.assemblydetail?has_content>
<table class="itemtable" style="width: 100%; margin-top: 10px;">
<!-- start items --><#list record.item as item><#if item_index==0>
<thead>
<tr>
<th colspan="3" align="left">Qty. Required</th>
<th colspan="8">${item.item@label}</th>
<th colspan="8">${item.description@label}</th>
<th colspan="2">Units</th>
<th colspan="2">Test2</th>
</tr>
</thead>
</#if>
<tr>
<td align="center" colspan="3" line-height="150%">${item.custcol_bom_qty}</td>
<td colspan="8"><span class="itemname">${item.item}</span></td>
<td colspan="8">${item.description}</td>
<td colspan="2">${item.units}</td>
<td colspan="2">${item.custitem6}</td>
</tr>
</#list><!-- end items -->
It is Test1 and Test2 column headers with item.custitem6. This produces n othing. item.item.custitem6 repeats the value for all items but is correct for the first one.nathanw
01/25/2021, 6:19 PMAria Ghahari
01/25/2021, 6:20 PMnathanw
01/25/2021, 7:08 PMMilcho Dimkov
01/25/2021, 8:25 PMAria Ghahari
01/25/2021, 8:29 PMMilcho Dimkov
01/25/2021, 8:30 PMmichoel
01/25/2021, 10:39 PMAria Ghahari
01/25/2021, 10:40 PM