AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • In-Person Gatherings
    • Power BI Workshop
    • Podcast
    • Rolodex
    • Blog
    • Forums
  • Paid
    • AugSQL
    • GI Course
    • GI Library
    • Consulting
  • Register

— The Forums are now read-only —

— All new activity now takes place here: —

AugForums.com Discord Server
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 4 years ago
3 Posts
2 Users
3 Reactions
2,084 Views
RSS
Jwright
Posts: 8
 Jwright
Topic starter
November 14, 2022 7: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 7: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 11: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,533 Topics
  • 11 K Posts
  • 80 Online
  • 2,438 Members
Our newest member: Ralph Torres
Latest Post: Nested SubReport Issue
Forum Icons: Forum contains no unread posts Forum contains unread posts
Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

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

Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

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

‹›×

    ‹›×