In need of a good idea - prevent new line when incomplete

NabucoNabuco Member Posts: 65
Hi all,
New to this site, and what a community - it can only be a benefit for all.

Furthermore, I have a little challenge:
On a line in a journal there are two fields (own design) which have to befilled in before the user is allowed to leave the line.
He should be allowed to move along the line, but not leaving it until these two lines has been filled in.
Have tried various ways, but not succeded.

Any good ideas how to make this happend?

Thanks in advance.

Answers

  • einsTeIn.NETeinsTeIn.NET Member Posts: 1,050
    Activate DelayedInsert on the Form and then check the two fields in OnInsert of the table.
    "Money is likewise the greatest chance and the greatest scourge of mankind."
  • NabucoNabuco Member Posts: 65
    Sorry to say that it do not work properly. When doing as suggested the ERROR turn up when leaving the empty field, not the when leaving the line.

    Even if you fill in the field you immediately get the ERROR because the field next to it is empty (which are the one also to be checked for content.
  • einsTeIn.NETeinsTeIn.NET Member Posts: 1,050
    Then you haven't activate DelayedInsert on the Form.
    "Money is likewise the greatest chance and the greatest scourge of mankind."
  • DenSterDenSter Member Posts: 8,307
    It's not the way NAV works. Checks like that are done during the posting routine, that is the purpose of the 'Check Line' codeunits.
Sign In or Register to comment.