Problem solve Get help with specific problems with your technologies, process and projects.

Field validation in script library vs. input validation event of field

This may be more of a preference or a philosophical issue than a question, but I am trying to weigh the pros and cons of doing all field validation in a script library called during a QuerySave event vs. in the input validation event of a field.

Both methods have several advantages and disadvantages -- i.e., script validation in QuerySave/Script Library, "centralized validation code" in script library, flexibility and complexity of Lotus Script validation, ability to turn off all validation during testing/coding by remarking a single line, traditional validation formula, simplicity of formula language, native support of validation by the Notes UI, evaluates during refresh as well as save, ease of troubleshooting code....

So, you can see how I am going back and forth. Do you have any insight?

I prefer to use the querysave single module validation approach for the user experience. If you have 25 fields to validate and the user has 25 invalid entries, they will need to attempt to save the document 26 times before it is correct. I wouldn't complete the form after my third try.

A single validation event allows you to present the user with all of the validation errors at one time. In a number of applications, we have set indicators near fields with invalid values with details on why the validation error occurred, as well as a consolidated list of all validation errors on the form.

Do you have comments on this Ask the Expert question and response? Let us know.

Dig Deeper on Lotus Notes Domino Application Development

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...