Skip to main content
Solved

How to clear error from a record/field?


aaghaei
Captain II
Forum|alt.badge.img+10

Hello All,

In Events Handlers, I am wondering how we can locate fields that business logic has raised and/or set error/warning for them. Basically what are the fields that have Red crossed circled or yellow exclamation?

Best answer by Natesan Sivarama

Hi @aaghaei,

The use of the PXCache.GetStateExt<> generic method is the recommended way to get the state of a field to test whether an error or warning is attached to the field.  

 

You can find more information here: https://help.acumatica.com/(W(46))/Help?ScreenId=ShowWiki&pageid=33c19565-d13a-413f-a232-5b5abc600660

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

6 replies

Vignesh Ponnusamy
Acumatica Moderator
Forum|alt.badge.img+5

@aaghaei, You can take look at the Source Code of the graph and search of the field name or the RaiseExceptionHandling event. This could give you an idea of where the validations are being made,

 

 


aaghaei
Captain II
Forum|alt.badge.img+10
  • Author
  • Captain II
  • 1202 replies
  • March 27, 2023

Thanks @vigneshponnusamy89 but my question is very different. What you are showing is the code that throws/sets the warnings/errors. What I am asking is how I would know if any or combination of the errors/warnings is raised and assigned to the record/field and how to clear them. My need is very different. I am looking for after the fact something has happened and presented on UI. You are referring to the code that generates the warning/errors. Very different. 


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • 2754 replies
  • May 17, 2023

Hi @aaghaei were you able to find a solution? Thank you!


aaghaei
Captain II
Forum|alt.badge.img+10
  • Author
  • Captain II
  • 1202 replies
  • May 19, 2023

Hi Chris, 

 

No I have not.


Hi @aaghaei,

The use of the PXCache.GetStateExt<> generic method is the recommended way to get the state of a field to test whether an error or warning is attached to the field.  

 

You can find more information here: https://help.acumatica.com/(W(46))/Help?ScreenId=ShowWiki&pageid=33c19565-d13a-413f-a232-5b5abc600660


aaghaei
Captain II
Forum|alt.badge.img+10
  • Author
  • Captain II
  • 1202 replies
  • October 2, 2024

Hi @Natesan Sivarama, Thank you for the response.


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