Quick question... Can anyone help with the below
I am trying to pull in the Absolute Value of field {customrecord.custrecord_payment_reg_delay} as {customrecord.custrecord_payment_reg_delay}?abs and it not returning the absolute value.
c
creece
10/24/2022, 8:09 PM
worst case if < 0 multiply by -1. abs was introduced in 2.23.0. Not sure what version of Freemarker NetSuite is running but if its earlier than that, you may be out of lukc.
s
scottvonduhn
10/24/2022, 8:31 PM
Try putting the ?abs inside the curly braces: it should be
{field?abs}
instead of
{field}?abs
scottvonduhn
10/24/2022, 8:32 PM
Freemarker treats text inside of the curly braces or the <# … > tags as code, everything else is treated as text
a
Antonio Cardona
10/25/2022, 2:54 PM
Thank you both. After trying the above and still resulting in the same error I opted to create a new Custom field and set the value in a WF after user submits ABS(field). Not the cleanest but ultimately is doing the trick.