Skip to main content
This forum is closed to new posts and responses. New discussions are now taking place in the IBM Developer Answers forum.
Information Mgmt
New to Lotus
How to buy
Live demos
Technical library
Forums & community
Java™ technology
Open source
SOA and Web services
Web development
My developerWorks
About dW
Submit content

developerWorks  >  Lotus  >  Forums & community  >  IBM Lotus Notes/Domino 8.5 Forum (includes Lotus Notes Traveler)

IBM Lotus Notes/Domino 8.5 Forum (includes Lotus Notes Traveler)

Previous Next

Agree with what others have responded, plus

a few general suggestions:

- Add an error handler to every script for being able to quickly identify where exactly the error is thrown. (I agree with Rich that the error in your case is most likely coming from the second form's Postopen, not from the first form's scripted button.)

- Add Option Declare to every script. (Note that with Option Declare specified, the Postopen of your second form won't compile as it is, unless you have hidden declarations of variables GoBack, ano and ne.)

- If your code accesses an object whose existence is uncertain, check if the object variable is actually initialized before using it. For example, in the following line
serverS$ = pdoc.GetFirstItem ("ServerDB").text
you are assuming that an item ServerDB exists, which may not be true if the profile document did not exist until your script was accessing it for the first time. The line above would then throw an 'Object variable not set' error, since pdoc.GetFirstItem ("ServerDB") returns Nothing.

Feedback response number JSAK8ZZ8WC created by Jochen Sack on 11/13/2012

ws.ComposeDocument (Adam Jiros 12.Nov.12)
. . What is the debugger telling you? (Doug Finner 12.Nov.12)
. . . . ws.ComposeDocument() (Adam Jiros 12.Nov.12)
. . . . . . Ignore (Rich Schwartz 12.Nov.12)
. . . . . . What is in the "bod" form? (Rich Schwartz 12.Nov.12)
. . Agree with what others have respond... (Jochen Sack 13.Nov.12)


Search this forum

Member Tools

RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds


Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds


IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Connections Cloud Developers
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums

 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
IBM Connections
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
Lotus Enterprise Integration
Lotus Protector
Lotus Quickr
Lotus SmartSuite