Here is the Query Phrase for a BAQ
for each OrderHed no-lock where OrderHed.OpenOrder = true , each OrderRel no-lock where (OrderHed.Company = OrderRel.Company and OrderHed.OrderNum = OrderRel.OrderNum ) and OrderRel.Plant = 'DEM' And OrderRel.OpenRelease = True , each XFileAttch no-lock outer-join where (OrderRel.Company = XFileAttch.Company and OrderRel.PartNum = XFileAttch.Key1 and OrderRel.RevisionNum = XFileAttch.Key2 ) and XFileAttch.RelatedToFile = 'PartRev' And XFileAttch.Key3 = '' , each XFileRef no-lock outer-join where (XFileAttch.Company = XFileRef.Company and XFileAttch.XFileRefNum = XFileRef.XFileRefNum ) , each Part no-lock where Part.ClassID <> 'ABC' where (OrderRel.Company = Part.Company and OrderRel.PartNum = Part.PartNum ).
You can connect Part Rev with XfileAttach
Key 1: PartNumber
Key 2: Rev
Then connect XfileAttach to XfileREf (Criteria = RelatedToFile = PartRev
Miguel A. Santillan
Compass Manufacturing Systems
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Monday, February 29, 2016 8:11 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Field Indicating the Existence of an Attachment
We have engineering drawing PDFs attached to our parts via the part revision. Is it possible to use the PartRev table in a BAQ to identify any parts that currently have no drawing attached to them? It seems like there should be a field (maybe a checkbox or something) that would indicate whether or not a part revision had an attachment or not. Or maybe it is possible to pull out the file path of the attachment? I haven't looked into this a whole lot, but I thought maybe someone out there would know off the top of their head and save me some time. Otherwise, I will let you'll know what I discover
Thanks!
Disclaimer
The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful.