BPM and UD field questions/issues

Hi all,
Smack dab in the middle of our E10 uplift from E9 and working on my method directives. I’ve used the Epicor migration tool to get me close but rarely does it produce perfectly function C# code. Here is one issue I have and unsure how to get around it with Epicor’s new method of handling UD fields.

if(ttJobMtlRow[“Number05”] > 0) gives me error CS0019 Operator ‘>’ cannot be applied to operands of type ‘method group’ and ‘int’

While if(ttJobMtlRow.Number05 > 0) gives me error CS1061 ‘JobMtlRow’ does not contain a definition for ‘Number05’ and no accessible extension method ‘Number05’ accepting a first argument of type ‘JobMtlRow’ could be found (are you missing a using directive or an assembly reference?)

Number05 DOES exist when I look in UD Column Maintenance

Thank you in advance!

TT rows do not contain the full data model like the DB rows. You will need to convert the ttJobMtlRow.Number05 or ttJobMtlRow[“Number05”] using the UDField method of the tt row objects. This applies to all UD fields setting and getting there are methods for them for the TT rows.

ttJobMtlRow.SetUDField<decimal>("Number05", 17.44M);



Worked perfectly. Thank you!

1 Like