AR Form add CustomerID

I’m trying to add the CustomerID field to our customized Invoice. I see the field is not excluded in the ARForm Base Definition. Why isn’t it in the dataset when editing my form in Report Builder?

You need to add it by modifying the SQL Phrase.

2 Likes

Customer.CustID is not excluded in the base RDD, yet is not in the built-in ARForm.rdl.

Is it common for Epicor to include data in the RDD’s dataset, but exclude it from the Report’s dataset?

1 Like

EDIT: Fixed reference for Customer table (T6)

The following assumes you’re modifying the original ARForm report, on one based on the original ARForm RDD (and Sync Data hasn’t been used on the Report Style)

  1. In Report builder, right click on the ARForm dataset, and select Properties

  2. In the Dataset Properties window, click the expression function button
    image

  3. in the expression editor, find where the T1 fields end
    image

  4. Insert the required field SHOULD BE T6.CustID, Not T1…
    image

  5. Click okay to close the expression editor

  6. Still in the Dataset Properties window, select the Fields tab

  7. Click Add, and select Query Field
    image

  8. In the blank row that is added at the bottom, enter the field name
    image

You should be good to go!

4 Likes

Thank you so much!!!

Thanks!

THAT DOESN’T WORK!!!

I’ve got to figure out which Tx table the CustID needs to be with…

In the query expression, the CustID field needs to be on table T6, not T1.

I’ve updated my original step-by-step post

2 Likes

Got it, thank you!