lotus-notes

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

自古美人都是妖i 提交于 2019-12-07 07:31:08
问题 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. 回答1: SELECT @If( @Date(@Now) < @Date(@Adjust(@Created(), null, null, 7, null, null, null)); @All; @False) 回答2: 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)

How do I display the copyright symbol in an XPage?

萝らか妹 提交于 2019-12-07 05:35:33
问题 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. 回答1: 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

Adding numbering to documents in Xpages

前提是你 提交于 2019-12-07 00:26:36
I needs some tips on this one, since I couldn't find anything on this, though it's probably pretty simple to do, but I can't think of a way. Ok, so I need a hidden field which will automatically compute so called id numbers for every document, the numbers must start from 00001 and forward and must never ever repeat. For instance i create a document with numberId = 00001 and another document which creates numberId = 00002, if I ever delete the first or second document, the third created document should have numberId = 00003. No matter how many documents get deleted, the next document created

Perform division of a 22 digit number in lotus script

白昼怎懂夜的黑 提交于 2019-12-06 15:40:19
I want to perform division of a 22 digit no. in lotus script. Can anyone please tell me how to do it? I am not getting the correct result. For e.g; dim num as Double; dim num1 as Double; num=123456789989898976765; num1 = num / 97; but i am not getting the correct result in num1. To satisfy the mathematician in me, I have to tell you that you're never going to get the "correct" answer, the division produces a number that has an infinite decimal, but I get what you're after, I think. The number you want is: 1 272 750 412 266 999 760.463 917 525 ... but the number you're getting is: 1 272 750 412

How to check Mail Read or Unread Property (Lotus Notes) using C#

痴心易碎 提交于 2019-12-06 15:00:10
I want to check mail read and unread property using C#. i.e want to check whether mail is read or not. (using Domino.dll) The unread marks table is not exposed through the "back-end classes" (which is what you are most likely using with Domino.dll). This is available thorugh the lower level C API - it's a bit more work to deal with, but if you are interested, look at the "NSFDbGetUnreadNoteTable", which takes a database handle and returns a handle to an "IDTable" (essentially, a document collection). IBM Documentation 来源: https://stackoverflow.com/questions/1592940/how-to-check-mail-read-or

How to redirect webpage by Lotus Notes java agent?

北战南征 提交于 2019-12-06 14:57:44
问题 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(

How do I prevent Lotus Notes users from forwarding or copying a message sent via System.Net.Mail?

喜夏-厌秋 提交于 2019-12-06 11:46:07
I want to send email using SMTP client uiing microsft.net with C# as programming language. But for the emails sent through SMTP client, can we add security features like "no forwarding" or "no copying" etc. I dont want recipients of the email to forward or copy the content of the email. Lotus Notes (the mail client) looks at the "Sensitivity" header. Using System.Net.Mail, you can accomplish the same thing (ONLY if your users are all using Lotus Notes) by using the following: mail.Headers.Add("Sensitivity", "Company-Confidential"); The Lotus Notes email client will disallow forwarding or

POI for XPages - save Word document as attachment in rich text field

China☆狼群 提交于 2019-12-06 11:22:13
I'm using the OpenNTF POI 4 XPages plugin. This works very well for generating Word Documents. Now, after generating the Word document, I would like to create a new response document and store the word document as an attachment in a rich text field in this response document. Here is my code (in the poi postGenerationProcess property of the POI 4 XPages widget): var doc:NotesDocument = currentDocument.getDocument(); var rdoc:NotesDocument = database.createDocument(); rdoc.appendItemValue("Form", "frmRespTempl"); rdoc.appendItemValue("Subject", "Embedded Word Document"); var rtitem

Write contents of InputStream to a RichTextItem and attach to a Notes document in Java

本小妞迷上赌 提交于 2019-12-06 08:14:27
I am able to attach a file to RichTextItem of a domino document that I receive as an InputStream . Below is the code snippet: attachDocument(InputStream is){ ..... File attFile = saveInputStr(is); Document attdoc = testdb.createDocument(); attDoc.replaceItemValue("Form", "formAttachment"); RichTextItem rti = (RichTextItem) attDoc.getFirstItem("attachment"); rti.embedObject(EmbeddedObject.EMBED_ATTACHMENT, "", attFile .getPath(), attFile .getName()); ..... } This works fine. But what if I don't want to write the file to disk, like I save it to a File i.e. attFile in the above snippet. Is there

Lotus Notes Automation: Notes.NotesSession doesn't implement Domino::ISession?

ⅰ亾dé卋堺 提交于 2019-12-06 07:38:49
I'm trying to improve my Lotus Notes client code: Working: #import "...\IBM\Lotus\Notes\notes32.tlb" no_dual_interfaces raw_native_types CComPtr<IDispatch> session_dispatch; if(FAILED(session_dispatch.CoCreateInstance(_T("Notes.NotesSession")))) ... NOTESSESSION *session = static_cast<NOTESSESSION *>(*&session_dispatch); This gives me a valid NOTESSESSION object that is aware that it needs to go through IDispatch to actually invoke methods. I found some example code on the net, which looks a lot saner and assumes a later Notes version: #import "...\IBM\Lotus\Notes\domobj.tlb" raw_interfaces