Skip to main content
Answer

Edit value of an attribute and save it

  • May 14, 2024
  • 1 reply
  • 95 views

Forum|alt.badge.img

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!

Best answer by Cesar Betances

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.

1 reply

Forum|alt.badge.img+2
  • Acumatica Moderator
  • Answer
  • May 15, 2024

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.