Manage Learn to apply best practices and optimize your operations.

How To Validate Form Using Script & Avoid Notes Error -Field Didn't Pass Validation Formula Error W

How to validate form using script & Avoid Notes Error -field didn't pass
validation formula error when refresh through script, (uidoc.Refresh)
Dim w as New Notesuiworkspace
Dim uidoc as Notesuidocument
Dim sess as NEw Notessession

set uidoc=w.Currentdocument

On Error GoTo ErrorHandler

Call uidoc.Refresh
%REM
On Refresh if you any vaildation formulas if they fail you get your defined
error message after than you get Notes Error Message top avoid here is solution
%END REM




ErrorHandler:

If Error="Notes Error - field didn't pass validation formula" Then
Exit Sub
Else
Msgbox "("+Error+")"+Chr$(13)+Chr$(10)+" Please pass this error message to your
notes database manager /developer",16,sess.CurrentDatabase.Title
End If


%REM

If there are any other error message it gives information to user what to do if
they get
%END REM

Dig Deeper on Domino Resources - Part 6

SearchWindowsServer
Search400
  • Favorite iSeries cheat sheets

    Here you'll find a collection of valuable cheat sheets gathered from across the iSeries/Search400.com community. These cheat ...

SearchDataCenter
SearchContentManagement
Close