https://netsuiteprofessionals.com logo
#suitescript
Title
# suitescript
b

battk

04/28/2022, 7:42 PM
you need to describe your problem better
not liking it leaves far too wide a range of problems
😄 1
s

Scruffy

04/28/2022, 8:08 PM
Ill rephrase my question. In an ADV PDF for a transaction, when the scripts steps through the list of line items to print, i want it to not print out a specific item. The example above says to use ?contains("String") but i would rather it check the internal id of the line to be printed. I change the If condition from
Copy code
<#if !item.item?contains("string")>
to
Copy code
<#if item.id != XXXX>
where XXXX = internal id of the item i want filtered out. I get a bunch of field type comparator errors. How do you suggest i filter out a line item to be printed by internal id?
b

battk

04/28/2022, 9:15 PM
you should print item.id
its not the internal id
s

Scruffy

04/28/2022, 9:22 PM
Hmm ok. I didnt try printing it to debug but i was referencing the XML file of the Item record. It says that id = internal ID of the record.
Thanks for the suggestions ill dig deeper.
2 Views