Skip to main content

Hello,

I working on a customization to the Inventory Item page. I have 2 attribute fields and 2 other fields that I am trying to sync. One field is a length stored as a decimal and one field is the length stored in the format of ft’ in”. I am converting fine, but when I try to save the document, the attribute fields are not updated.

//Updating the attribute
lengthAttribute.Value = Fractions.DecimalToFraction(itemExt.UsrLength ?? 0m);

I edit the field: 

Edit this field

 Attribute is updated as expected.

Attribute is updated as expected

But when I save, it revert the attribute to the previous values.

But when I save, it revert the attribute to the previous value

Does anyone know what I am missing to get the attribute to save?

 

Thanks in advance!

Hi,

You could try to use PXCache.SetValueExt, see more details on this post:
https://stackoverflow.com/questions/62016523/how-to-subscribe-to-user-defined-fields-in-acumatica

Hope this helps.


Reply