Manage Learn to apply best practices and optimize your operations.

Creating Message Window

Lotus Notes Form and Error Messages :

In web environment after submitting Form , if you use print statement to print
error messages in the WebQuerySave agent, those will be appeared in the new
but it will be more convenient for user to see error messages on the same form .
Following script will create new window with Error message in the same form and
user can goto particular URL after pressing OK button.

Call following subroutine in the QuerySave agent.
You can control position of window, contents of error messages , and URLpath
depending upon your application.

Satish Vedpathak
Sub DisplayError(msgText)
Home = URLpath
winname = "NewWin"
Print |&LTSCRIPT LANGUAGE='JavaScript'>| & _
| history.go(-1); | &_
| win=open(location.href, "Newwin" , "screenX=460 ,screenY=
460 ,width=320,height= 150"); | &_
| doc = win.document ;| &_
| doc.write(" | & msgText & | ") | &_
| doc.write("&LTFORM>&LTCENTER>&LTINPUT TYPE=button VALUE=Return
onClick='open(| & Home & |, | & winname & |)'</CENTER></FORM>") | &_
Print |</SCRIPT>|
End sub

Dig Deeper on Lotus Notes Domino Administration Tools

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials'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 ...