How to delete the record just inserted

poppinspoppins Member Posts: 647
edited 2013-07-15 in NAV Three Tier
Hi everyone,

I have an issue with records insertion in NAV.
In my record, I need to do some control on a field called amount, if it is bigger than a certain value, an error message is and the user is called to modify the value of that field...

The problem is that NAV inserts the record anyway, with a zero for the amount field.
I want to be able to delete the records when the error message is raised...

How can I do that?

Thanks in advance :)

Comments

  • ara3nara3n Member Posts: 9,256
    Are you working in RTC?
    If yes, the answer is that NAV won't insert the record if you have put code on validate to error.

    The user still has to fix the amount before inserted. The user is allowed to move off the field but nav allows the user to come back and insert the value again.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
Sign In or Register to comment.