lotus-notes

LotusScript cannot get file attachment from email

北慕城南 提交于 2019-12-04 15:39:57
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 s As NotesSession Dim db As NotesDatabase Dim rtItem As NotesRichTextItem Dim fileToExtract As String

Using a Dynamic View Panel

心已入冬 提交于 2019-12-04 11:52:01
I am using a Dynamic View Panel to display various views inside a single XPage . This has resulted in a few problems. Firstly, column styling set inside the views is not displayed on the XPage (eg: making column headers bold). More importantly, while the view contains links to the documents inside the view, links are all appended with action=editDocument , which I would like to change to action=openDocument . However, I cannot find any way to change this property. You need to use a customizer bean for this and add the name of that bean to the customizerBean property of the Dynamic View Panel

Where are the javadocs for Lotus' Notes.jar?

ε祈祈猫儿з 提交于 2019-12-04 04:08:19
I need to use Lotus Notes/Domino as a data source from a Java application. The documentation at IBM says that the Notes.jar contains everything I will need, but where are the javadocs? I believe the APIs are detailed in the Domino Designer Help . From what I quickly read, there isn't a set javadocs available. However, I stumbled upon this utility that generates them for you. Would this help? Jason Here comes Notes.jar of Domino 8.5 Java API document Have a look at the DeveloperWorks help 来源: https://stackoverflow.com/questions/1848243/where-are-the-javadocs-for-lotus-notes-jar

Call to getEmbeddedObjects(); (Domino Server API) returns wrong results

别等时光非礼了梦想. 提交于 2019-12-04 03:49:05
问题 The Domino server API getEmbeddedObjects(); returns the wrong result (zero) when a mail containing an attachment (as embedded object) is sent from the script. Though an attachment is sent as an EmbeddedOBject , getEmbeddedObjects(); returns ZERO . The mail type is NOT MIME . This is a Java application. Is there is any workaround for this problem? I take the body from the document. If the body is of richtextitem, I call the getEmbeddedObjects() which returns zero though an attachment is

Best practices for version control for Lotus Notes/Domino development

拈花ヽ惹草 提交于 2019-12-04 03:43:23
Please share how you do version control for Lotus Notes/Domino development. I want to put in our SVN repository all the scripts, views, custom forms, script libraries, etc. Semi-automated methods are accepted as well (i.e. if I find a way to get all the event scripts for a form in one file, and to be able to place it back in Notes Designer as a whole file). The openntf project Design Catalog can be used for version control. It uses dxl technique mentioned by kerr. www.openntf.org/projects/pmt.nsf/ProjectLookup/DesignCatalog At lotusphere the lotus911 people mentioned they used the Design

Way to check is an user a document author?

随声附和 提交于 2019-12-04 03:33:14
Hello Domino programmers! I work on a lotus database + xpages and i ran into a following problem: I have Authors and Readers fields on document and both can contain users and groups. Both fields are set on XPage using NamePicker control. When document is saved i would like to hide an "Edit" button when user doesn't have rights to do so. Is there a way to just check on document, datasource or context - if current user is document author? Or i have to check it all way long, comparing Authors fields - multiple usernames and groups with current username? Any help will be appreciated. You can use

Location of currently running class or JAR file

岁酱吖の 提交于 2019-12-04 03:09:59
I have a Lotus Notes database which is performing some interaction with a remote web service. I've written a custom Java class to perform the interaction. The class methods can be executed from one of three locations depending on the user's setup: Within a Java script library called via a Lotus Notes Java agent Within a JAR file located in the user's "jvm/lib/ext" directory Within a JAR file located in a custom directory within the user's "jvm/lib" directory (for example, "jvm/lib/custom_dir"). The Lotus Notes JVM is aware of the custom directory via usage of the "JavaUserClassesExt" local

How to get list of views from “mail” in Lotus Notes using .NET?

偶尔善良 提交于 2019-12-04 02:33:13
问题 I am accessing mail from Lotus notes. And in order to access "Inbox" i am using below code: _notesDatabase = _lotusNotesServerSession.GetDatabase(LotusNotesServer, "mail\\" + nsfName, false); NotesView inbox = _notesDatabase.GetView("($Inbox)"); Similarly for "Drafts". But here i am specifying name of each view in GetView method. Which is not good coding. I want to list these views "Inbox","Drafts" programaticaly using C#. Can anybody give me solution? 回答1: There is a property of the

Lotus DB to SQL Server migration

℡╲_俬逩灬. 提交于 2019-12-03 20:32:14
My company has a database in IBM's Lotus DB. It was designed long back. Now, the contract is ending, and we need to transfer it to SQL Server. The problem is that it is a huge organization, and since these databases are very old...we are not able to track the person who designed it. Right now, we just have the application which was build using the lotus DB. Is there a way we can migrate this to SQL Server? Are there any good tools available to migrate the data to SQL Server? There are no tools that can auto-magically translate a non-relational unstructured LN DB into an SQL schema. Lotus Notes

How do I get all the attachments from a .nsf(lotus notes) file using java

孤人 提交于 2019-12-03 19:42:22
问题 Steps followed : Took a back of my lotus notes as sample.nsf And then tried to read the attachments from the sample.nsf Code snippet : Database db = session.getDatabase("","C:\\Projects\\NotesToJava\\sample.nsf"); DocumentCollection dc = db.getAllDocuments(); Document doc = dc.getFirstDocument(); while (doc != null) { RichTextItem body = (RichTextItem) doc.getFirstItem("Body"); if (body.getEmbeddedObject("Request.xlsx") != null) System.out.println("Found BPM_Dev_Access_Request.xlsx in " + doc