Skip to main content
Question

Custom generic inquiry is giving duplicate lines

  • February 11, 2025
  • 1 reply
  • 51 views

Forum|alt.badge.img

Hi,

 

We've created a custom generic inquiry for our client, but it's returning duplicate results from the EPTimecarditem table. When I group the inquiry by PMTran.NoteID, it correctly displays a single line from the EPTimecarditem table. However, the Road Name/Skid No field displays the same value across all lines, even though the timecard entry has different values for each line under this field.

I've attached the generic inquiry for your reference. Any assistance with this issue would be greatly appreciated.

 

Thanks 

1 reply

Forum|alt.badge.img
  • Jr Varsity I
  • 61 replies
  • February 13, 2025

Hi ​@pankaj65,

 

1. Open the "PSSummitRoading" inquiry

 

2. Go to the "Relations" tab and modify the table relationships:
   First, verify the PMTran -> PMRegister relation exists and is configured correctly
   Then update the relationship chain to be:
   PMTran -> PMRegister (already exists)
   PMRegister -> EPTimeCard 
   EPTimeCard -> EPTimeCardItem

 

3. Remove the direct relationship between PMTran and EPTimeCardItem since we'll be connecting through the proper chain

 

4. The relations should be set up as follows:
   For PMTran -> PMRegister:
   Parent Table: PMTran
   Child Table: PMRegister
   Join Type: Left
    Conditions: 
    RefNbr = RefNbr
    TranType = Module

 

   For PMRegister -> EPTimeCard:
   Parent Table: PMRegister
   Child Table: EPTimeCard
   Join Type: Left
   Condition: OrigNoteID = NoteID

 

   For EPTimeCard -> EPTimeCardItem:
   Parent Table: EPTimeCard
   Child Table: EPTimeCardItem
  Join Type: Left
  Condition: TimeCardCD = TimeCardCD

 

5. On the "Grouping" tab:

Since you mentioned grouping by PMTran.NoteID works, keep that grouping if desire

You might want to add additional grouping options:

EPTimeCard.TimeCardCD

EPTimeCardItem.LineNbr

 

This should resolve both the duplicate results and ensure the Road Name/Skid No field displays the correct values for each line.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings