AUGForums.com

An Acumatica User Group

  • Free
    • Start Here
    • Rolodex
    • Podcast
    • Blog
    • Forums
  • Course
  • Consulting
  • Login
  • Register
Acumatica Forums

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

  • Overview
  • Member List
  • All-Stars
  • Stats
  • Recent Posts
  • Help
Forums
AUG Forums
Acumatica Generic I...
Boolean Field Value...
 
Notifications
Clear all

In order to allow me to focus on Consulting (click here) and Courses (click here), I continue to review all posts here in the Forums, but, in general, I'm only personally responding to posts that I mark as #AcumaticaTnT (click here). For Questions (click here), others may respond, or you can post over at Community.Acumatica.com (click here).
Sincerely,
Tim Rodman

Questions Boolean Field Values in Results Grid

Acumatica Generic Inquiries & Pivot Tables
Last Post by dave.ziskind 1 month ago
8 Posts
4 Users
1 Likes
493 Views
RSS
dave.ziskind
Posts: 16
 dave.ziskind
Topic starter
June 14, 2022 8:47 pm
(@dave-ziskind)
Member
Joined: 2 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: 544
 Royce Lithgo
June 15, 2022 10:55 pm
(@roycelithgo)
Member
Joined: 3 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)
Member
Joined: 3 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: 2 years ago

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: 7 years ago

Member
Posts: 2957
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)
Member
Joined: 2 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: 7 years ago

Member
Posts: 2957
December 27, 2022 11:42 pm
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 6:47 pm
(@dave-ziskind)
Member
Joined: 2 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
  • 11 Forums
  • 2,239 Topics
  • 9,872 Posts
  • 7 Online
  • 1,813 Members
Our newest member: Marion Hooley
Latest Post: Export Scenario - Export same row twice (Conditionnal)
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

Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

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

‹›×

    ‹›×