Skip to main content
Solved

Identify Invalid(Error included) rows in RowPersisting event


Forum|alt.badge.img

Hi All,

Need to know how to identify error lines( Exception included) in RowPersisting event.

This is my sample screen.

 

Thanks

Best answer by Giri K

@bhagyat25 

You can write below syntax

String ex="error msg";

throw Exception ex;

View original

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

Hi @bhagyat25, Can you please share more details on the requirement? Like, current behavior, expected behavior.


Forum|alt.badge.img
  • Jr Varsity II
  • October 23, 2023
Vignesh Ponnusamy wrote:

Hi @bhagyat25, Can you please share more details the requirement?

Hi @Vignesh Ponnusamy

I set some property Exception after clicking the Verify Vendors button. If that validation fails, row field is marked it has an exception. So, I need to prevent saving those exception including rows.  Hope that makes sense. 


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • November 29, 2023

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


Forum|alt.badge.img+1
  • Pro I
  • December 1, 2023

@bhagyat25 

You can write below syntax

String ex="error msg";

throw Exception ex;


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