Skip to main content
Solved

Is there a way to add report logic to pull the alternate ID based on the value of the Alternate Type?

  • June 28, 2024
  • 6 replies
  • 230 views

Hello, 

My company has multiple cross references for each product. One is global, one is an ISBN, and another is a Customer/Vendor part number. 

On my SO report and Invoice report, I need to include the ISBN. I am having trouble writing the logic necessary to say that if the alternate type is GTIN/EAN/UPC/ISBN then pull the alternate ID. If null, nothing. 

Thanks​​​

Best answer by ejmillar

You need to join INItemXRef like below….

 

 

Then use the following expression:

=IIF([INItemXRef.Descr]=Null,[ARTran.InventoryID_description],[INItemXRef.Descr])

6 replies

ejmillar
Varsity III
Forum|alt.badge.img+1
  • Varsity III
  • Answer
  • June 28, 2024

You need to join INItemXRef like below….

 

 

Then use the following expression:

=IIF([INItemXRef.Descr]=Null,[ARTran.InventoryID_description],[INItemXRef.Descr])


Forum|alt.badge.img
  • Freshman I
  • November 17, 2025

DId this work for you? I can’t get my UPC code on the AR invoice. Do you mind sharing?

 


ejmillar
Varsity III
Forum|alt.badge.img+1
  • Varsity III
  • November 18, 2025

Add the following join clause:

Parent Field:

=’GIN’

Child Field:

INItemXRef.AlternativeType

 

The code for GTIN/EAN/UPC/ISBN’  is ‘GIN’

The relationship between AccountID and BAccountID is not needed.

HTH


Ralph
Jr Varsity I
Forum|alt.badge.img
  • Jr Varsity I
  • May 6, 2026

Add the following join clause:

Parent Field:

=’GIN’

Child Field:

INItemXRef.AlternativeType

 

The code for GTIN/EAN/UPC/ISBN’  is ‘GIN’

The relationship between AccountID and BAccountID is not needed.

HTH

Is there an easy way to find see what the code for something like GTIN/EAN/UPC/ISBN. The way we do it is a little cumbersome and I am hoping I am just missing an easy way to view the values when there isn't a way to see them in the Element Properties like there is in the Drop Down control type
 

 


ejmillar
Varsity III
Forum|alt.badge.img+1
  • Varsity III
  • May 7, 2026

I don’t think there is tbh.

I would create a GI and you can use an expression to find the db value as below.

Group by the Alternative Type to get a distinct list.

 

Regards,

Ewan Millar.

 


Ralph
Jr Varsity I
Forum|alt.badge.img
  • Jr Varsity I
  • May 7, 2026

Add the following join clause:

Parent Field:

=’GIN’

Child Field:

INItemXRef.AlternativeType

 

The code for GTIN/EAN/UPC/ISBN’  is ‘GIN’

The relationship between AccountID and BAccountID is not needed.

HTH

Thanks, Ewan! That is basically what we do currently.