lotus-notes

Lotusscript search windows directory for subdirectories and files. Recursion?

早过忘川 提交于 2019-12-10 22:26:59
问题 I'm trying to write a LS agent to scan a directory in windows eg:'C:\' for any files and sub-directories. For each sub-directory, it will go inside and search for more files and sub-directories and continues until there's no more to look for. I'm used to write recursive code to replace or remove characters in a long string but for this one I'm totally lost. Below is my code (it's a mix of code from the domino help file and one I found in IBM site): Sub Initialize Dim pathname As String,

Lotus Notes custom view received mail

拥有回忆 提交于 2019-12-10 20:35:51
问题 I am using lotus notes 8.5.2 on windows 7. I would like to create a custom view that shows all emails EXCEPT sent mail. In other words it contains: INBOX & ALL FOLDERS. Currently my ALL DOCUMENTS view has the following formula conditions: SELECT @IsNotMember("A"; ExcludeFromView) & IsMailStationery != 1 & Form != "Group" & Form != "Person" The SENT view has the conditions: SELECT DeliveredDate = "" & PostedDate != "" & !(@IsMember("S"; ExcludeFromView)) My thinking is that I should be able to

Unable to fix “Syntax error, 'for each' statements are only available if source level is 1.5”

别来无恙 提交于 2019-12-10 17:27:45
问题 I am writing a Java Agent which uses parameterized collection types and enhanced-for loops. Domino Designer 8.5.3 then tells me to change the project's compliance level to 1.5 in a quick-fix action. If I do that, the project rebuilds and nothing changes. Nothing happens if I go to the project's Java Compiler settings to set it manually, or change it in the workspace settings either. How can I get rid of this error? 回答1: There is an annoying bug in Domino Designer. The "Compiler Compliance

dialog list lotus notes in xpages

无人久伴 提交于 2019-12-10 16:24:31
问题 Is there any equivalent for lotus notes Dialog list in xpages? Or, if it's possible, an xpage combobox ''which accepts'' multiple values selected. Thanks for your time 回答1: Use a xe:djextListTextBox to collect and show multiple values, use xe:valuePicker to add values from an existing list to ListTextBox and use optionally a button to prompt for a new value and to add it to ListTextBox. This is an example for xe:djextListTextBox and xe:valuePicker : <xe:djextListTextBox id="djextListTextBox1"

Open an email program with subject and body prefilled is not working correct

匆匆过客 提交于 2019-12-10 16:20:52
问题 I have the following javascript function which should open (in our case lotus notes), with a prefilled email. function emailpage() { strTitle = document.title; strTitle = strTitle.replace("&","-"); window.location = "mailto:" + "?subject=I thought this link might interest you." + "&body=" + strTitle + " - " + window.location; } but instead I am getting this: 回答1: Replacing body and subject should help you: function emailpage() { strTitle = document.title; strTitle = strTitle.replace("&","-");

How to build a Lotus Domino Database using SVN and Ant, Maven or Gradle

岁酱吖の 提交于 2019-12-10 14:56:23
问题 I'm having a database in Domino Designer, which is under Source-Control. Now i want to automatically build this database on a build-server. Does anybody know, how to create an ant-script or maven or gradle, whatever is working, to get a valid database automatically from the build-server or commandline? Thanks in advance 回答1: This presentation by an IBMer given during a user group meeting in late 2012 mentions (page 30) the future possibility of doing command line builds. You might still need

How to pass the Document context in Xpages while calling an Agent?

微笑、不失礼 提交于 2019-12-10 11:46:43
问题 How to pass the Document context in Xpages while calling an Agent? In Xpage, I am in need of calling a java agent with documentcontext from my Xpage, And also I am in need of passing my current document as a parameter... In Lotuscript we can do it as easily without saving the current document, but in Xpage I am using the following code., document1 is a current document. var agent=database.getAgent("AgentName"); agent.runWithDocumentContext(currentDocument.getDocument()); This code I am not

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

倖福魔咒の 提交于 2019-12-10 11:28:49
问题 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

Notes 9, rewriting URLs

余生颓废 提交于 2019-12-10 11:18:40
问题 How do you rewrite a URL in Notes 9 XPages. Let's say I have: www.example.com/myapp.nsf/page-name How do I get rid of that .nsf part: www.example.com/page-name I don't want to do lots of manual re-direct because my pages are dynamically formed like wordpress. I've read this: http://www.ibm.com/developerworks/lotus/library/ls-Web_site_rules/ It does not address the issue. 回答1: If you use substitution rules like the following, you can get rid of the db.nsf part and call your XPages directly as

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

拈花ヽ惹草 提交于 2019-12-10 10:34:37
问题 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) 回答1: 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