lotus-notes

Lotus notes get attachment names from document

落花浮王杯 提交于 2019-12-19 04:12:39
问题 I'm developing an Lotus Notes plug-in for Notes 8.5.2 that saves the attachments from an eMail to the Harddisk. But when I try to read the attachment names from a Notes document I always get the same string containing the first attachment name + some junk data. protected Vector<String> getAttachmentNames() throws NotesException, IOException { Vector<String> attachmentNames = new Vector<String>(); Item item = null; Enumeration<?> itemsEnum = mailDoc.getItems().elements(); while (itemsEnum

How to clean SSJS in Domino server after someone used javascript prototype in a nsf?

感情迁移 提交于 2019-12-18 13:07:46
问题 How to clean SSJS (Server Side Javascript) in Domino server after someone used javascript prototype in a nsf? Mark Roden discovered a huge weakness in XPages SSJS: (thanks to David Leedy for tell me about this and show me the article). If you have the following SSJS code: var dummyObj = {} dummyObj.prototype.NAME = "Johann" XPages SSJS doesn't care that you uses var (var means the variable must be local) and it makes dummyObj.NAME visible in the whole server with the value Johann . So if

How to export Notes Document(email,task,etc.) from Lotus notes Client 8.5 into DXL File?

☆樱花仙子☆ 提交于 2019-12-18 09:42:36
问题 I am using Lotus notes Client 8.5 and i want to export mail items into DXl file. can anyone tell me the steps to convert notes doxument into DXL file? 回答1: Create a Java agent to export a DXL file for all selected documents: import lotus.domino.*; public class JavaAgent extends AgentBase { @Override public void NotesMain() { try { Session session = getSession(); AgentContext agentContext = session.getAgentContext(); DocumentCollection dc = agentContext.getUnprocessedDocuments(); String

How do I close my window in Xpage?

偶尔善良 提交于 2019-12-18 09:07:19
问题 Actually I am using the following code for closing my current window: window.close() The thing is, it is working fine in IE, but it is not working in FF and Chrome. Is their any great solution for doing this? 回答1: window.close() works in 8.5.3 but only if parent contains an object and it will not do this if you have i.e an xpage that is opened inside an ordinary Notes application or a ordinary view. you need a window.open to get this. I have investigated alot about this a while ago but no

How to create an auto incrementing field in lotus domino?

你离开我真会死。 提交于 2019-12-17 17:07:36
问题 I have an application in lotus domino with a field UNIDID -number(computed)... I want that every time a new entry is created, this field to increment by 1 and the new value should be stored in new record document.. I have a @dbcolumn formula which will get me the last entry in the UNIDID field- mFind:=@DbColumn("" : "NoCache" ; @DbName ; "lkpEmpMasterbyOnlyUnidCode";1); How do I increment mFind and submit it in form of ' UNIDXXXX '? 回答1: Employ document locking to assure number uniqueness in

How to create an auto incrementing field in lotus domino?

梦想与她 提交于 2019-12-17 17:06:12
问题 I have an application in lotus domino with a field UNIDID -number(computed)... I want that every time a new entry is created, this field to increment by 1 and the new value should be stored in new record document.. I have a @dbcolumn formula which will get me the last entry in the UNIDID field- mFind:=@DbColumn("" : "NoCache" ; @DbName ; "lkpEmpMasterbyOnlyUnidCode";1); How do I increment mFind and submit it in form of ' UNIDXXXX '? 回答1: Employ document locking to assure number uniqueness in

NoClassDEfFoundError while Using AXis with Lotus notes 6.5

白昼怎懂夜的黑 提交于 2019-12-13 21:42:02
问题 I am trying to use APACHE-AXIS framework in Lotus notes 6.5. I did: Created java library in Script library created the Java files from WSDL and added to the library added xml-apis.jar to the library. Now i created an agent an added the created library to it. See Agent code below: import lotus.domino.*; import java.net.URL; import javax.xml.namespace.QName; import javax.xml.parsers.ParserConfigurationException; import org.apache.axis.client.*; public class JavaAgent extends AgentBase { public

Reloading a document while being changed by an agent running in the background

混江龙づ霸主 提交于 2019-12-13 21:30:08
问题 A Lotus script calls a Java agent and passes parameters to it in an In-Memory-Document. The agent performs some computations and reports its progress in a property of the shared document. A Timer on the form periodically checks the value representing the progress in the document and updates the UI accordingly. The agent, having accomplished some progress, says: doc.replaceItemValue("Percent", String.valueOf(percent)); doc.save(true, false); The timer on the forms loads the document

Trouble processing parameters when creating a new email in IBM Notes from powershell?

感情迁移 提交于 2019-12-13 20:29:09
问题 I have a parameter that I pass to IBM notes to generate a new email that is passed to notes.exe as follows: mailto:bob@yahoo.com?subject=For Employee Someguy Somsirname?body= Hi, Someguy%0AI am emailing you in regard to Someguy. Unable his\her Stuff. Please contact his\her.%0A%0A %0AThank you,%0A %0A I'd like to be able to call this from Powershell, but when it calls notes.exe Notes says There was an error processing command line arguments If I just copy and paste the parameter above and put

Are web services processed sequentially or in parallel?

半世苍凉 提交于 2019-12-13 20:28:17
问题 I am just getting started in web services using Lotus Notes. What I would like to be able to do is to create a web service that generates a sequential number. The code to generate the number is based on existing code we have used for some time within our databases (just straight lotus script, no web services). Basically there is a document that stores the next number, the next number is returned and is updated for the next call save conflicts are detected and the number is tried again if