AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • Rolodex
    • Podcast
    • Blog
    • Forums
  • Paid
    • AugSQL
    • GI Course
    • GI Library
    • Consulting
  • Register
Acumatica Forums

By using this website, you agree to our Terms of Use (click here)

Forums
AUG Forums
Acumatica Generic I...
Boolean Field Value...
 
Notifications
Clear all

Questions Boolean Field Values in Results Grid

 
Acumatica Generic Inquiries & Pivot Tables
Last Post by dave.ziskind 2 years ago
8 Posts
4 Users
1 Reactions
1,670 Views
RSS
dave.ziskind
Posts: 16
 dave.ziskind
Topic starter
June 14, 2022 8:47 pm
(@dave-ziskind)
Eminent Member
Joined: 5 years ago

Hi!

When trying to return the value of IsPrimary from Contact, only blanks are returned. How do I get the true/false value?

Thank you,

Dave Z

7 Replies
Royce Lithgo
Posts: 557
 Royce Lithgo
June 15, 2022 10:55 pm
(@roycelithgo)
Honorable Member
Joined: 5 years ago

Blank means false - are you certain there are Contacts where this property is true?

Reply
Wyatt.ERP
Posts: 128
 Wyatt.ERP
June 16, 2022 6:51 am
(@wyatt-erp)
Estimable Member
Joined: 5 years ago

Hello @dave-ziskind, looking at the Contact DAC, IsPrimary is a field that is calculated on the fly and isn't saved to the Database.  Because of this, when you try to use it, you'll only get NULL values.  You can get what you want by running the calculation though.  In this case, Left Join BAccount to Contact on Contact.ContactID = BAccount.DefContactID.  In your results grid, you can say IIF(BAccount.BAccountID = NULL, 0, 1).  This should get you the results you want.

Reply
dave.ziskind
 dave.ziskind
(@dave-ziskind)
Joined: 5 years ago

Eminent Member
Posts: 16
June 16, 2022 10:41 am
Reply toWyatt.ERPWyatt.ERP

@wyatt-erp I am using =IIf( [Contact.ContactID]=[BAccount.DefContactID]+1, 'Y', 'N' ) which works with my joins. However, as you can see in the formula, my ID's are off by one. Have you seen that before?

Reply
Tim Rodman
 Tim Rodman
Admin
(@timrodman)
Joined: 10 years ago

Famed Member
Posts: 3192
June 22, 2022 6:30 pm
Reply todave.ziskinddave.ziskind
Wyatt.ERP

@dave-ziskind I think they're off by 1 because of the +1 in your formula.

Reply
dave.ziskind
Posts: 16
 dave.ziskind
Topic starter
June 22, 2022 8:01 pm
(@dave-ziskind)
Eminent Member
Joined: 5 years ago

@tim-rodman The formula was used to make up for the data being off. Let me know if you are seeing something different. 

image
image

What I now see as even weirder is others that do not follow this pattern; I thought I saw that originally, but the formula worked on the need vendors. I've posted on the Acumatica Community, but not sure that will get it any attention.

Reply
Tim Rodman
 Tim Rodman
Admin
(@timrodman)
Joined: 10 years ago

Famed Member
Posts: 3192
December 28, 2022 12:42 am
Reply todave.ziskinddave.ziskind

@dave-ziskind That's weird. I haven't needed the +1 before. I wonder what's going on in your environment.

Reply
dave.ziskind
Posts: 16
 dave.ziskind
Topic starter
January 4, 2023 7:47 pm
(@dave-ziskind)
Eminent Member
Joined: 5 years ago

Thanks @timrodman. Unfortunately, I don't remember how we got past this, but no issues have been reported yet.

Reply
Tim Rodman reacted
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,518 Topics
  • 10.9 K Posts
  • 8 Online
  • 2,309 Members
Our newest member: Jason Rhodes
Latest Post: Table linkage for adding a customer location note to the SO Shipment form
Forum Icons: Forum contains no unread posts Forum contains unread posts
Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Online Members

  • Nathan Deardorff
Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

Copyright © 2025 · AUG Forums, LLC. All rights reserved. This website is not owned, affiliated with, or endorsed by Acumatica, Inc.

‹›×

    ‹›×