Solved

Understanding GI Formulas. Isnull().

  • 26 May 2022
  • 1 reply
  • 1181 views

Userlevel 1

Hi Everyone, 

I’m trying to understand formulas in GIs. The documentation does not provide guidance on how to use formulas. There is a Report Designer guide that lists each formula and how it’s used (Isnull() on p. 63) but it lacks detail about how data types affect expressions within the formula. If you know of another resource, please share :-)

 

On to Isnull(). Here’s the documentation.

I’ve written a simple formula with unexpected results:

=
Isnull(
CStr([ARInvoice.CustomerID]),
'NULL'
)

in row 1, ‘9698’ does not match either of the referenced columns. Why?

My ultimate goal is to have this algorithm in a way that Acumatica understands:

If CustomerID is null, return ReferenceID, else return CustomerID

 

icon

Best answer by RoyceLithgo 27 May 2022, 02:46

View original

1 reply

Userlevel 5
Badge +2

= Isnull( [ARInvoice.CustomerID], [ARInvoice.ReferenceID] )

IsNull returns the first value if it is no null, otherwise it returns the second value.

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved