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...
Join table with fil...
 
Notifications
Clear all

Questions Join table with filter on a constant (Generic Inquiries)

 
Acumatica Generic Inquiries & Pivot Tables
Last Post by Jwright 3 years ago
3 Posts
2 Users
3 Reactions
1,261 Views
RSS
Jwright
Posts: 8
 Jwright
Topic starter
November 14, 2022 6:07 pm
(@jwright)
Active Member
Joined: 4 years ago

The goal is to have a generic inquiry to identify sales orders in the shipping status, that at some point had the backordered status.

From what I have found I could do a join to the Audit History we have of the sales order page.

 

This is how it looks in SQL:

SELECT top 30 so.OrderNbr, so.OrderQty, so.OpenOrderQty, so.OrderDate, ah.ModifiedFields, ah.ChangeDate, so.ShipDate, so.Status
FROM SOOrder so
INNER JOIN AuditHistory ah ON 'SO' + so.OrderNbr = ah.CombinedKey
     and ModifiedFields = 'StatusB'
WHERE so.CompanyID = 2
and so.ShipDate is not null
and so.Status = 'N'

 

I'm not sure how to make the part in Blue work in a GI.

See the screenshot below for my attempt on making this in the join tab.

I have also tried adding in the conditions (last two lines in screenshot) but this doesn't work since the join is a one to many join and I can't control which line in the audit history table it joins on without my and ModifiedFields = 'StatusB'.

image
image

2 Replies
Royce Lithgo
Posts: 557
 Royce Lithgo
November 14, 2022 6:44 pm
(@roycelithgo)
Honorable Member
Joined: 6 years ago

You need to prefix the string with an equals so it's treated as a formula.

ie.

='StatusB'


Reply
Jwright reacted
Jwright
Posts: 8
 Jwright
Topic starter
November 15, 2022 10:38 am
(@jwright)
Active Member
Joined: 4 years ago

Thank you Royce!


Reply
Tim Rodman and Royce Lithgo reacted
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,526 Topics
  • 10.9 K Posts
  • 66 Online
  • 2,412 Members
Our newest member: thollings
Latest Post: Attribute Input Mask
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

  • Colleen Cyr
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.

‹›×

    ‹›×