Report Designer Lookup Function Questions

SUGGESTED

I'm missing something when it comes to using the Lookup function in Report Designer. 

In SQL, it is a piece of cake for me to create the relationships I need for a report. For some reason, I can't figure out how SAGE Report Designer Lookup works.

For instance, I have a AP Transaction Report and I'd like to include the Reconciliation Status field from the CM - Transaction Table.

I've tried linking through Bank Account, Payment ID, and a few other combinations. From what I've read, it sounds like this lookup function is very limited as to which fields you can use to create a relationship. 

What is the process to determine which (if any) fields can be used to link two separate tables? 

LOOKUP(Reconciliation Status,  ???, ???, ..ect)

Parents
  • 0

    The Report Designer help for lookup says to go to Tools > Available fields. It specifies that keys are listed in parentheses under the first order listed. For the CM - Transaction table, there are 7 different standard orders. Am I limited to the first order on this list? Meaning I need to supply the Bank Account, run, and Seq in order to access a record from this table? No other lookup combination will work? 

  • 0 in reply to WarrenH
    SUGGESTED

    The combination of "key" fields define a unique record in the data table. Accordingly, the combination of the identified "key" fields is necessary to "LOOKUP" a specific unique record using TS Report Designer.  If the driving record of your report design does not include each of the key fields, then you will not be able to use the LOOKUP function to retrieve additional data fields from the CM Transaction record.  What is the "driving record" (the primary data file) in your report design?

  • 0 in reply to Art Minds

    Thanks for the confirmation... I was afraid that was the answer. So, that said, are the Bank Account, TRUN and TSEQ records for the AP - Transaction and the Bank Acct, TRUN, abd TSEQ in CM-Transaction not the same?  My report just spins when I try and match up that way.

    LOOKUP(Reconciliation Status, Bank Account, Run Number, Sequence Number).

    Driving Table is AP - Transaction

    Recon Status status comes from CM - Transaction (primary:  Bank Account, Run Number, Seq Number).

    I see examples of LOOKUP where the table is in brackets after the field name. Is that just for clarification? I get an error when I include the a bracket in the formula. 

Reply
  • 0 in reply to Art Minds

    Thanks for the confirmation... I was afraid that was the answer. So, that said, are the Bank Account, TRUN and TSEQ records for the AP - Transaction and the Bank Acct, TRUN, abd TSEQ in CM-Transaction not the same?  My report just spins when I try and match up that way.

    LOOKUP(Reconciliation Status, Bank Account, Run Number, Sequence Number).

    Driving Table is AP - Transaction

    Recon Status status comes from CM - Transaction (primary:  Bank Account, Run Number, Seq Number).

    I see examples of LOOKUP where the table is in brackets after the field name. Is that just for clarification? I get an error when I include the a bracket in the formula. 

Children