Skip to main content
Solved

Edit value of an attribute and save it

  • May 14, 2024
  • 1 reply
  • 60 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.

View original
Did this topic help you find an answer to your question?

1 reply

Forum|alt.badge.img+2
  • Acumatica Moderator
  • 44 replies
  • 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.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings