FORUM PLAN UPDATE
Date revision: This forum will remain open to new posts and responses until December 1, 2018. (After that date, you will still be able to view and search the forum.) Also, we're taking a second look at the best place to host future conversation. For now, keep using this forum, and stay tuned for more news.


Dec 13, 2016, 5:00 AM
106 Posts

Thoughts

  • Category: Application Development
  • Platform: Windows
  • Release: 9.0.1
  • Role:
  • Tags: @IsValid,Input Validation
  • Replies: 4
First of all, I don't fully understand what your form does. Maybe you can elaborate a bit on this. For example, you are writing that there's some LotusScript code that runs after QuerySave, and that you want that code to return False to QuerySave. I don't see how that would be possible at all.

It's certainly a good idea to catch Error 4412, which is raised when a NotesUIDocument.Save() or NotesUIDocument.Refresh() fails due to a field validation error. Another suggestion is to never use NotesDocument.Save() -- i.e., the back-end Save operation -- when saving the document from LotusScript code that runs in the context of a form or subform, since that would bypass any validation.

FORUM PLAN UPDATE
Date revision: This forum will remain open to new posts and responses until December 1, 2018. (After that date, you will still be able to view and search the forum.) Also, we're taking a second look at the best place to host future conversation. For now, keep using this forum, and stay tuned for more news.