If you want to open a document in a dialog box you can use two methods: Continue reading “Opening a document in a dialog box”
I discovered that you can not debug the Terminate event of a form with Lotus Notes Designer 8.5.3 and I do not understand why.
I’m sure that once you could.
Hiding a rich text field with a formula “Hide paragraph if formula is true” does not work as with other fields.
In fact the contents of rich text field can retain the same property “Hide paragraph if formula is true” when it is saved even if this property was modified with a notes client designer.
This situation occurs when the rich text field is the first element of a row or a cell of a table.
To set the new property for a rich text field, type a space or other element before the rich text field.
If a user sends an e-mail using an agent, he seems to be the sender or the agent signer seems to be the sender if the agent is scheduled.
This is not always the desired behavior, especially in the case of scheduled agents in which the sender of the e-mail seems to be the developer of that agent or the administrator of the server.
Continue reading “Sending an e-mail from an other user”
The method getDocumentByUNID NotesDatabase class returns the appropriate document for the UniversalUnid passed as argument, but it does not return Nothing if it does not find the document but the error 4091 (lsERR_NOTES_BAD_UNID).
Then a code to handle this would be the following:
Dim s As New NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument
Dim unid As String
Set db = s.Currentdatabase
unid = "1EC53F4B3D66557BC12579A600404BE2"
On Error 4091 GoTo Error4091Handler ' lsERR_NOTES_BAD_UNID
Set doc = db.Getdocumentbyunid(unid)
On Error GoTo 0
Print "Document found"
Print "Document not found"
The method UpdateProcessedDoc in NotesSession class can be used to mark a document as already processed by an agent Continue reading “The method UpdateProcessedDoc in NotesSession class”
I think it might be useful to replace each occurrence of a string in all the documents or in the selected documents in a Lotus database, especially when you want to replace a user in the fields author/reader.
The use of roles or groups should be recommended to set the access to the documents, but there may be cases where the user’s name has been used as in Lotus Workflow projects.
Continue reading “Replace a string in the documents in a Lotus database”
In this post I explain how to get a resource, for example an image, from a java agent even if this file is not saved on the file system. Continue reading “How to get a resource from a java agent in Lotus”