Skip to main content
Answer

SOLine.aMProdOrdID is not accessible in Code

  • July 14, 2023
  • 2 replies
  • 37 views

Forum|alt.badge.img+1

Hi all,

 

I tried to use SOLine.aMProdOrdID in my customization project as below.

But it shows me following error.
The Type amProdOrdID does not exist in the type ‘SOLine’

 

But when I see SOLine table in Database, amProdOrdID column is there.

How can I fix this issue?

 

Thanks.

Best answer by Zoltan Febert

The field is not in the SOLine DAC, but in the PX.Objects.AM.CacheExtensions.SOLineExt extension.

LeftJoin<AMProdItem, On<PX.Objects.AM.CacheExtensions.SOLineExt.aMProdOrdID, Equal<AMProdItem.prodOrdID>>>

 

2 replies

Zoltan Febert
Jr Varsity I
Forum|alt.badge.img+3
  • Jr Varsity I
  • Answer
  • July 15, 2023

The field is not in the SOLine DAC, but in the PX.Objects.AM.CacheExtensions.SOLineExt extension.

LeftJoin<AMProdItem, On<PX.Objects.AM.CacheExtensions.SOLineExt.aMProdOrdID, Equal<AMProdItem.prodOrdID>>>

 


Forum|alt.badge.img+1

@zfebert56  Thank you. It worked!