Generation of this error is useless, it only hinders. Quite enough to return Nothing.
Similar GetDocumentByID method does not generate errors.
On error, produce a 'core dump' of all defined variables, objects, and a call trace.
The 'core dump' might provide a limited (one-level) listing of defined objects with their property values, and all local and global variable values. Going down more than one level might end up with a ...
Generation of this error is useless, it also hinders. All error handling should be done in the proper place - on QuerySave.
I propose that the Save method returns the result as Boolean, it's would be very convenient and usefull.
I would like to see an improvement of LotusScript errorhandling and therefore introduce the Try..Catch..Finally block that You do in Java and other OOP languages.
That would give us the option to get rid of the hideous On Error Goto statements and have proper errorhandling as it should be.
I propose that it's method returns the result as Boolean, is quite enough. It is better add to Desinner Help describe the situations where the method may return False, and this:
Generating the error ...
Saving shared actions (with LS) should run compiler a do all error processing analogous to agents, script libraries, etc.
This restriction exists for the following methods NotesUIWorkspace class: PickListCollection, PickListStrings, Prompt, URLOpen, EditDocument, SaveFileDialog, OpenFileDialog. Its meaning is not clear, because DialogBox allowed, and he calmly executed?!!
I propose to remove this restriction, without him it will be very convenient to choose something, but, for example, if you cancel ...
The following scenario:
1. A web-form makes ajax calls against a domino agent.
2. User starts to work on a document on his web client.
3. User plays WII tennis match with his collegue.
4. User returns to his document and presses an ajax enabled button. Unfortunatedly in the meantime ...
Why do I need to write
"On Error Goto ErrorLab
Exit Function ErrorLab: Call CommonError Exit Function End Function" in each function/sub? Let me to write this code in one place and extend it to all LotusScript errors at any Function/Sub