lotusscript

LotusScript cannot get file attachment from email

痞子三分冷 提交于 2020-01-01 17:56:14
问题 I had never run into this problem, but I cannot get a handle on a file attachment on an email. I have code that can either search the document for Embedded Objects or search a field for Embedded Objects -- neither of them are returning the file. I can see the file on the email and I can see the $FILE field which contains the file attachment. Here is the code: Function FileDetachFiles(doc As NotesDocument, fieldName As String, getFromField As Integer) As Variant On Error Goto ProcessError Dim

Can I return a List from a LotusScript Function?

牧云@^-^@ 提交于 2020-01-01 11:33:42
问题 I want to return a List from a Function in LotusScript. eg. Function myfunc() List As Variant Dim mylist List As Variant mylist("one") = 1 mylist("two") = "2" myfunc = mylist End Function Dim mylist List As Variant mylist = myfunc() Is this possible? If so, what is the correct syntax? 回答1: It seems you can't return a List from a Function. You can easily wrap it in a class though and return the class. eg. Class WrappedList Public list List As Variant End Class Function myfunc() As WrappedList

Notes View: How can I show only those documents which are under the user's name in a specific field

送分小仙女□ 提交于 2019-12-25 05:45:12
问题 I want to show to the users who are accessing the view the documents which are under him or her. For example: If I have a field named " Name ". There are 23 documents in the view and of all those documents, but only five of them have my name under "Names" field. I want to show in the view all those documents under me which would be five documents. Could you please help me? I appreciate it a lot. 回答1: Create a Page with an embedded view. Categorize view by field Name . Put into embedded view's

Search document in lotus notes

你。 提交于 2019-12-25 02:57:32
问题 I can't solve the problem with searching documents in lotus notes. I have a form SearchForm where placed a some fields (like date_from , date_to , document_title etc.) and button 'Run search'. I have a view 'SearchView' where I want to display the search results. When user enter the search criteria and click Run search button I want to display the SearchView with documents. But I don't how to write click handler of button Run search . Also I prefer to use Formula language to perform this

How to get Lotus range values into array

帅比萌擦擦* 提交于 2019-12-24 21:45:19
问题 Is there a fast method in Lotus 123 to get all cell values in a range into an array. I'm looking for something similar to Excel VBA where it's very fast. Dim arrValues() As Variant arrValues = rg.Value The resulting array can also be manipulated and put back into the sheet; In my case I want to then put it into Excel. Basically replacing copy and paste. Operating on an array in memory is much faster than manipulating cells one at a time. I know how to do it by reading cells one at a time but

Query AD using LotusScript - lastLogon value empty

一个人想着一个人 提交于 2019-12-24 12:53:59
问题 Dear LotusScript Gurus, I am developing a Lotus Notes agent who should synch our Windows 2003 AD with our Lotus Domino Directory (V 7.0.3 Server/Client). I am using the ADODB.Connection and ADODB.Command processes to connect it and query the AD users. This is the command text: objCommand.CommandText = "<LDAP://ou=DMHU Users,dc=some,dc=kindof,dc=domain>;(&(objectCategory=person)(objectClass=user));name,lastLogon;subTree" Then I would access the content of the field "lastLogon": objRecordSet

Error in Evaluate statement macro

北城余情 提交于 2019-12-24 08:45:16
问题 I have a problem with an evaluate statement . I am trying to use this function into in a class, because I want to use the formula @DbLookup into lotusscript. This is my class code : Class DirectorSucursal Private m_branch As String 'Constructor class Public Sub New (branch) me.m_branch = branch End Sub 'Deleter Class Public Sub Delete End Sub 'Function show the field value Public sub GetBranch MsgBox m_branch End Sub 'Function get the name director Public Function getNameDirector

Adding logging in Lotus Notes form

回眸只為那壹抹淺笑 提交于 2019-12-24 08:19:35
问题 I want to add logging capabilities in my Lotus Notes application. Basically I want to be able to log who make the change, when the change is made, and what field(s) is/are changed in a document. What is the best way to do this? I am thinking to also add this at the end of each document so the user knows who make the changes. 回答1: I've done this before using LotusScript. It's a bit of a pain, but the basic idea is to: Create an array or new document object within the QueryOpen event, and store

Retrieving inline images from Lotus notes using lotusscript

大憨熊 提交于 2019-12-24 07:37:15
问题 I have some NotesDocument where some RichText fields have both text and inline images. I can get text part of that items but can't retrieve inline images using lotusscript. Could any one please suggest me a way to retrieve inline images from that documents. LotusScript code: Sub Click(Source As Button) Dim session As New NotesSession Dim db As NotesDatabase Dim mainDoc As NotesDocument Dim v As NotesView Set db = session.CurrentDatabase Dim fileName As String Dim fileNum As Integer fileNum% =

passing LotusScript parameter to Java

瘦欲@ 提交于 2019-12-24 01:43:32
问题 I am calling a a java getHTML( urlToRead ) class from LotusScript (thank you, Matt Holthe), which uses a CONST to pass the URL. The java code sits in a java "script-library". When I change the constant urlToRead to a variable, the java class does not read the variable and I get an empty response. Do I need to use in-memory documents, or is there an easier way? I need to get a return json value so a "call" does not work unless I'm using in-memory documents, which I am trying to avoid. I am