lotus-notes

FTSearch involving date fields is confusing me

痴心易碎 提交于 2019-12-05 19:52:24
I have Custom Control with a search screen that lets the users select any of up to six different fields to search on. I had no trouble getting all the other fields working with the exception of the two date fields. They can fill in both begin and end dates or just one or the other. Pretty standard stuff but I cannot figure out how to write the code to make the query work and have it do the search when it involves dates. var tmpArray = new Array(""); var cTerms = 0; if(requestScope.cmbSendTo != null & requestScope.cmbSendTo != "") { a = @Right(requestScope.cmbSendTo, "("); b = @Left(a,3);

Convert IBM Lotus Notes file to text

◇◆丶佛笑我妖孽 提交于 2019-12-05 18:52:37
How can I convert an .nsf lotus file to a text file? i want to write a java program to read .nsf file which is on my system. i have tried it simply but it is showing non english character is their any way to get access them normaly. EDIT: That code is in .net and using any server's session, I just want to read .nsf file by java without creating any server's session in fact i have .nsf database. i just want to read as a text file.if there a way to parse .nsf with javacc,it would be better enough...... lotus notes database is full of proprietary design components. Assuming you just want to

How do I select all documents from the last 7 days?

北慕城南 提交于 2019-12-05 18:51:47
I have a view selection formula SELECT @If( @Date(@Now) = @Date(@Created); @All; @False) and I want it to select all documents from the past 7 days rather than just today's. Nick Fortescue SELECT @If( @Date(@Now) < @Date(@Adjust(@Created(), null, null, 7, null, null, null)); @All; @False) You need 2 parts. The view selection formula: SELECT isnotyet7daysOld = @True and an agent (or two) which run on schedule and on "when documents have been created or changed". The agent looks like this (both) minDate := @Adjust(@Today;0;0;-7;0;0;0); REM "There are no future documents"; tmpResult := @if

send appointment invitation to lotus notes 8.5 clients via c#

隐身守侯 提交于 2019-12-05 18:48:11
i am using Interop.Domino.dll and able to send mail via c# code to lotus notes 8.5 users. now i want to send appointment invations to users via c# code. here is my code. oNotesDocument.ReplaceItemValue("Form", "Appointment"); oNotesDocument.ReplaceItemValue("AppointmentType", "3"); // meeting oNotesDocument.ReplaceItemValue("Subject", "Deneme Toplantı"); oNotesDocument.ReplaceItemValue("CALENDARDATETIME", StartDate); oNotesDocument.ReplaceItemValue("StartDateTime", StartDate); oNotesDocument.ReplaceItemValue("EndDateTime", EndDate); oNotesDocument.ReplaceItemValue("StartDate", StartDate); /

Location of currently running class or JAR file

我们两清 提交于 2019-12-05 16:50:18
问题 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"

How do I display the copyright symbol in an XPage?

我只是一个虾纸丫 提交于 2019-12-05 10:31:39
This seems like it should be simple. Using the escape sequence of © doesn't work when I enter this as text. The XPages engine keeps escaping the ampersand character, causing the string to be written as a literal. XPages is XML and it doesn't know the HTML escape characters, hence the "escaping" of the © symbol. I stumble over the same problem when designing XSLT stylesheets that output HTML. What should work is: © . Are you planting the code in the source of the XPage or do you compute it? If you compute it, make sure you pick the "HTML" option (escaped=false), not plain text. Let us know how

Lotus DB to SQL Server migration

一笑奈何 提交于 2019-12-05 08:54:03
问题 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? 回答1: There are no

Read Lotus Notes documents and items from NSF file with C#

孤街浪徒 提交于 2019-12-05 07:36:05
How can I get all Lotus Notes documents (e.g. mails and their content) from a Lotus Notes inbox from an NSF Files with C# and the usage of interop.domino.dll ? I want to use the following snippet: Domino.NotesSession m_session = null; ... this.m_session = new Domino.NotesSession(); this.m_session.Initialize(""); Domino.NotesDatabase db = null; this.m_session.GetDatabase("", "C:\test.nsf", false); Domino.NotesDocumentCollection col = db.AllDocuments; for (int i = 0; i < col.Count; ++i) { Domino.NotesDocument doc = col.GetNthDocument(i); ... } How can I access the items of each document? For

Extracting email messages from a Lotus Notes NSF file using Java API

雨燕双飞 提交于 2019-12-05 00:53:03
问题 I'd like to use the Java API (Notes.jar), and I'm running a Windows box with Lotus Notes 8.5 installed. I know nothing about Lotus Notes, and I only need to do this one narrow task: extracting email messages from an NSF file. I want to be able to iterate through all the email messages, grab the metadata (From, To, Cc, etc) or the raw MIME if available. I've googled around quite a bit, but I haven't found anything straightforward without requiring some significant Lotus Notes domain expertise.

How to redirect webpage by Lotus Notes java agent?

橙三吉。 提交于 2019-12-04 21:11:55
Users comes to a page by using following URL: http://myswerver/mydb.nsf/myagent?OpenAgent Now I want this Java agent check something in the db and if it meets some conditions then redirect user to another page. If not - load main page that is build by myagent. Here is my agent code: PrintWriter pw = getAgentOutput(); if(myvar == 1){ pw.flush(); pw.println("Content-Type: text/html"); pw.println("<html><head>"); pw.println("<script>location.href=\"http://www.mypage.com\"</script>"); pw.println("</head></html>"); } The problem that it loads agents' page everytime even it redirects then. I do want