lotusscript

How can I delete a current document and close the window in an action button?

情到浓时终转凉″ 提交于 2021-02-11 06:43:14
问题 I changed an action button 'into', so when some user press this button I just save the Uidoc. I would like to delete this document considering the fact that if I do not delete it all documents will be saved on ALLdocument views! When I try to delete the document (call doc.remove) i receive the error message: "Cannot remove notesdocument when instantiated by NotesUIDocument", all this in another action button of the doc. Also, I would like to close the NotesDocument. I also tried something

How can I delete a current document and close the window in an action button?

本秂侑毒 提交于 2021-02-11 06:42:29
问题 I changed an action button 'into', so when some user press this button I just save the Uidoc. I would like to delete this document considering the fact that if I do not delete it all documents will be saved on ALLdocument views! When I try to delete the document (call doc.remove) i receive the error message: "Cannot remove notesdocument when instantiated by NotesUIDocument", all this in another action button of the doc. Also, I would like to close the NotesDocument. I also tried something

How to retrieve Lotus Notes attachments?

安稳与你 提交于 2021-02-08 07:38:36
问题 I’m trying to export all of the documents and their attachments from a Lotus Notes database (with Designer 7.0). I can get the document data and can get an attachment, but only if I hard code the name. The two methods, in LotusScript, I’ve found for getting the filename programmatically aren’t working, as shown in the lower two code blocks. In the first, doc.GetFirstItem( "Body" ) returns Nothing, and in the second, there’s a Type Mismatch during execution on the Forall line. Any help on how

Retrieving NotesDocumentCollection during QueryPaste

北战南征 提交于 2021-01-29 09:13:50
问题 Is this possible in Notes? I am currently using version 11. I have a form with an embedded view in it. This view has code in the QueryPaste function. For example it has the code: Sub Querypaste(Source As Notesuiview, Continue As Variant) Dim ndcRegel As NotesDocumentCollection Dim docRegel As NotesDocument Set ndcRegel = source.Documents Msgbox "1" Msgbox source.Documents.Count etc... When copy and pasting a document in the embedded view, it triggers Msgbox 1 first and then for the count I

Retrieving NotesDocumentCollection during QueryPaste

回眸只為那壹抹淺笑 提交于 2021-01-29 09:06:42
问题 Is this possible in Notes? I am currently using version 11. I have a form with an embedded view in it. This view has code in the QueryPaste function. For example it has the code: Sub Querypaste(Source As Notesuiview, Continue As Variant) Dim ndcRegel As NotesDocumentCollection Dim docRegel As NotesDocument Set ndcRegel = source.Documents Msgbox "1" Msgbox source.Documents.Count etc... When copy and pasting a document in the embedded view, it triggers Msgbox 1 first and then for the count I

How to fix it class not found exception in domino designer?

冷暖自知 提交于 2021-01-28 19:34:59
问题 here is my code when I trigger it it shows an error Dim jSession As New JavaSession Dim jClass As JavaClass Dim jObject As JavaObject Set jClass = jSession.Getclass("learn/MyClass") Set jObject = jClass.CreateObject Call jObject.myMethod() The error is : Ls2j error : Threw java.lang class not found exeption I have tried everything which I found on internet but error is still there with package name without package name class path or loaction but somehow its not finding the class kindly help

How to fix it class not found exception in domino designer?

喜你入骨 提交于 2021-01-28 19:22:40
问题 here is my code when I trigger it it shows an error Dim jSession As New JavaSession Dim jClass As JavaClass Dim jObject As JavaObject Set jClass = jSession.Getclass("learn/MyClass") Set jObject = jClass.CreateObject Call jObject.myMethod() The error is : Ls2j error : Threw java.lang class not found exeption I have tried everything which I found on internet but error is still there with package name without package name class path or loaction but somehow its not finding the class kindly help

How to access current logged in user email address in lotus script?

怎甘沉沦 提交于 2020-05-16 22:00:41
问题 I am looking to find the email address of the current notes client user who is logged in programmatically. Is there a way to do it ? I am accessing username with session but I need email address Thanks in advance. 回答1: From the Help database, part of an example for the getMailInfo method: Dim session As New NotesSession Dim db As NotesDatabase Dim mynotesdir As NotesDirectory Set mynotesdir = session.getDirectory("server name") Dim homeserver As Variant homeserver = mynotesdir.GetMailInfo

How to Fix error ls2j : threw java.lang class not found exception in lotus script?

青春壹個敷衍的年華 提交于 2020-04-30 09:27:17
问题 here is my code Dim jSession As JAVASESSION Dim jClass As JAVACLASS Dim jObject As JavaObject Set jSession = New JAVASESSION() Set jClass = jSession.Getclass("JavaAgentReporter") Set jObject = jClass.CreateObject Call jObject.myMethod() and I am invoking this onClick of ana action button 来源: https://stackoverflow.com/questions/61437425/how-to-fix-error-ls2j-threw-java-lang-class-not-found-exception-in-lotus-scrip