Solved

Edit value of an attribute and save it

  • 14 May 2024
  • 1 reply
  • 22 views

Userlevel 1
Badge

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!

icon

Best answer by Cesar Betances 15 May 2024, 19:24

View original

1 reply

Userlevel 4
Badge +2

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


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved