Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
NSC | Freemarker Tip: Check data type first using the is_* built-in before using data in a Condition
Before comparing field(s) and/or data in a condition through Freemarker (e.g. <#if record.data1 == record.data2>Display this!</#if>), check their data type first. Or else, you'll end up with an error!
Use the is_* built-in to check the data type.
Example:
${record.shipdate?is_date_like}
${record.shipdate?is_string}
Learn more about the is_* built-in in the following site:
https://freemarker.apache.org/docs/ref_builtins_expert#ref_builtin_isType
-Jack
----------------------------------------------------------------