Skip to main content
Solved

Different Values of the Same Field?


jthrashr
Freshman I

Can anyone explain why these provide different values?

from the results grid

 

the result:

from the GI

 

Best answer by Neil Cantral

I recommend joining an aliased table so you can easily reference anything from the parent account without unexpected behaviors.

Here is a quick example stolen from a Business Accounts inquiry:

 

 

 

View original
Did this topic help you find an answer to your question?

5 replies

Neil Cantral
Jr Varsity I
Forum|alt.badge.img+3
  • Jr Varsity I
  • 62 replies
  • June 15, 2021

The first column is displaying the AcctCD value of the parent account while the second column is showing the actual BAccountID value.

The parent BAccountID is the value on the Customer record and does not require a second join to grab the parent AcctCD. I assume this is done for performance reasons to increase the efficiency of formulas and queries. However, when writing a GI it is changed to display the AcctCD for the sake of convenience and usability since it doesn’t require the user to manually add another table/join if they’re just looking for a reference to the parent account.


wfilipiak67
Captain II
Forum|alt.badge.img+3
  • Captain II
  • 99 replies
  • June 15, 2021

It is because one value is the Values that you “see” displayed & the other is the SQL value of the record in the Table. 

You can see this clearly using Doc Type form the ARInvoice table.  

 


jthrashr
Freshman I
  • Author
  • Freshman I
  • 3 replies
  • June 15, 2021

@wfilipiak67@Neil Cantral Thanks for the responses. Is it possible to return the more human-readable AcctCD in a formula? Is there a different field I should use?


wfilipiak67
Captain II
Forum|alt.badge.img+3
  • Captain II
  • 99 replies
  • June 15, 2021

@jthrashr, I have found that in the formula’s it easier to use the Schema value.
As an example when totaling/  displaying the AR Invoices & Credit memos, we negate the Credit Memos by using 

=IIf( [ARInvoice.DocType]='CRM', -([ARInvoice.CuryOrigDocAmt]), [ARInvoice.CuryOrigDocAmt] )
Instead of

 =IIf( [ARInvoice.DocType]='Credit Memo’, -([ARInvoice.CuryOrigDocAmt]), [ARInvoice.CuryOrigDocAmt] )


Neil Cantral
Jr Varsity I
Forum|alt.badge.img+3
  • Jr Varsity I
  • 62 replies
  • Answer
  • June 15, 2021

I recommend joining an aliased table so you can easily reference anything from the parent account without unexpected behaviors.

Here is a quick example stolen from a Business Accounts inquiry:

 

 

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings