Hi There
I am trying to work out where to start in terms of trying to do the following:
I have a transaction record such as a sales order.
The item sublist has varying number of items (for example 10 line items).
In an advanced pdf template, I want to display a subset of the list of items
This subset will be based on if they meet a certain criteria.
Where I am getting stuck is, I know how to create a list in freemarker (i.e. <#list transaction.item as itemlist>)
though I don't know how to filter this list and apply criteria?
For example, I want to filter and display only those items where the price level is 'custom'.
Is there a directive in freemarker that allows this?
How would this be applied in this scenario?
I had come across "?filter()" online in the freemarker manual though I got an error message saying this is not a valid directive in Netsuite.
Alternatively, in this use case, is it possible to create an array with the items from the item sublist which meet certain criteria?
How would I do this? do I use the 'assign' directive and create a blank array first?
Thanks