Skip to main content
18-Opal
March 7, 2018
Question

Combining two Query Builder Reports into one.

  • March 7, 2018
  • 2 replies
  • 4801 views

Currently have two separate but very similar Query Builder Reports that I would like to combine into one.

 

Both reports are for change notices, and we create change notices for both EPM Documents (CAD) as well as WTDocuments (PDF).  So we have three scenarios for the change notice :

  1. Only EPMDocs.
  2. Only WTDocs
  3. Both 

The two existing reports work fine separately, but when combined deliver incorrect results.   I suspect that I don't have the joins done correctly.

 

Any advice?

 

 

2 replies

22-Sapphire I
March 7, 2018

Combined report likely working ok for changes that involve both EPM and WT, but not for those with just one type - because it's looking for an AND condition.  Need to arrange essentially as an OR condition.

mdebower18-OpalAuthor
18-Opal
March 7, 2018

Makes sense and I suspected as much.   How do I tell it to treat it as an OR?

22-Sapphire I
March 7, 2018

I can do this using sql but haven't been successful yet in query builder reports.  Hopefully someone else can chime in.

mdebower18-OpalAuthor
18-Opal
March 8, 2018

Okay,  made some progress, but not completely there yet.   Doing the outer joins gets me everything listed, but when I add any Criteria against either the WTDocument or the EPM Document, it falls on it's face.

 

Added an Outer Join Against: Change Task on the From Tab.

20180308-124009.png

 

 

 

mdebower18-OpalAuthor
18-Opal
March 9, 2018

Made some more progress and am getting very close, I think. 

Found that if you use OR statements in the Criteria, you can filter out the extra information for the most part.  Will attach the latest QML file for review.

 

21-Topaz I
March 9, 2018

What version of PDMLink are you working in?

 

I don't have some of the same listings as you do.  I am in 10.1 still but working on upgrading to 11.0.