lotus-domino

Multithreading a java agent

放肆的年华 提交于 2019-12-11 21:05:47
问题 A java agent has to upload a file in the background and return the Url of the uploaded file. While uploading, the agent has to report its progress. I marked the agent to be "Run in background client thread. I am stuck in the following dilemma: I can run the agent from Lotus Script and pass its parameters in an In-Memory file, but the client actually doesn't run in its own thread. Instead, it blocks the whole client. I can run the agent from a formula, but then I can't pass any parameters! If

Running java agents in lotus notes

吃可爱长大的小学妹 提交于 2019-12-11 20:11:40
问题 Hi I am using lotus notes 8.5 and in view -> Agents i created a new Agent and selected java language and tried to test the basic running of the Agent. import lotus.domino.*; public class JavaAgent extends AgentBase { public void NotesMain() { try { Session session = getSession(); AgentContext agentContext = session.getAgentContext(); System.out.println("Sample Test of Lotus Notes Agent!"); } catch(Exception e) { e.printStackTrace(); } } } so basically the above code must print in the java

XPages: How to create link to download file from filesystem

ε祈祈猫儿з 提交于 2019-12-11 19:37:04
问题 i have a pdf file in a folder and i want to download it from an xpage. Normally this is just html like this: <a href='file://10.1.0.2/folder1/myfile.pdf'>click and download</a> I tested that it works using this line in a simple html file. In my Xpage I created a computed field (HTML display) and i added the < a > as value. I see the correct link on hover but on click nothing happens. What is the problem? Thnx 回答1: I have recently solved this kind of problem by writing a download "servlet" as

Lotus Notes: Displaying Image attachment on a document

拟墨画扇 提交于 2019-12-11 19:15:38
问题 I have a field (Rich Text), that holds the value of an image attachment, but it only display the image path and filename, not as an image display. Am I using the wrong field or there's a problem in my line of code to attach the image? The code to attach is right below: chqRSIDoc.photodoc = workspace.Openfiledialog(True, "Select a file to attach as photo: ", "", "c:\") Appreciate all the help. Thanks! 回答1: The openFileDialog returns just a string array. see http://www.ibm.com/support

Xpages JDBC DB2

ⅰ亾dé卋堺 提交于 2019-12-11 18:44:51
问题 I´m testing the access to RDBMS through extension library, but there was no sucess. I installed the plugin and the Xpages extension library extended, but when I tested a xpage with combobox that the values are the relational table by the @JdbcDbColumn, the error below display. I´m testing in local in designer not a server. Error while executing JavaScript computed expression Script interpreter error, line=2, col=8: Error while executing function '@JdbcDbColumn' comp/env/jdbc/db2 Updated info:

Deploying OSGi Servlet to Domino (IBM presentation) - 404 error

浪尽此生 提交于 2019-12-11 18:28:52
问题 I´m trying to deploy an OSGi container in Domino using PDE tool with Equinox. I´m following the instruction in this IBM slideshow: http://www.slideshare.net/fiorep/domino-osgi-development?next_slideshow=1 However (as per slide #52) when I browse to http://localhost/simpledemo (after clicking Debug from Debug Configuration), I get a "404 file not found" error. "simpledemo" is the alias mapped in the puligin.xml file (slide 44). The servlet name is however SimpleServlet. Any ideas what is going

Why I can't use two JSON libraries at the same time in LS

大城市里の小女人 提交于 2019-12-11 17:32:30
问题 I need to use JSON in my Notes project. I've downloaded a library for it here https://openntf.org/main.nsf/project.xsp?r=project/JSON%20LotusScript%20Classes. I get a JSON String from back-end side, do some manipulations with JSON And later I need to parse it back into a String. But unfortunately, I can use either JSONReader or JSONWrapperConverters script. Cannot use both for some really stupid reason. It gives me the following error. So I am able either to parse a string using JSONReader or

View will show all list updated form every time changes made

和自甴很熟 提交于 2019-12-11 14:59:08
问题 I'm new with lotus notes. Basically, I have a form. I want to create a situation where when I edit the form, that form will not be overwritten but it will automatically create a new form with an updated form. But when I open the new updated form, we can see all list of history from the old form. I can't think of any way to create it. Any suggestion would help me. Thanks! 回答1: First of all: you need to know the difference between FORM and DOCUMENT. The FORM is the design element in designer

Creating Folder using Java in lotus notes

喜欢而已 提交于 2019-12-11 14:06:16
问题 hi I am trying to create a folder using java in Louts notes.I have created an agent in Domino Designer.I have created a document and i am setting the following properties of the document. Here is the code. doc.replaceItemValue("$ColumnFormatItem", "$Sender1"); doc.replaceItemValue("$ColumnFormatExtItem", "$Sender1"); doc.replaceItemValue("$ColumnProfileDoc", "ColorProfile"); doc.replaceItemValue("$DesignerVersion", "8.5.3"); doc.replaceItemValue("$FormulaClass", "1"); doc.replaceItemValue("

Extract inline images from Lotus Notes using Lotus Notes Java API

送分小仙女□ 提交于 2019-12-11 13:39:35
问题 I'm having issues to extract inline images that are pasted in the email body if the emails are sent from external email (like gmail for example) into the Lotus notes. The emails which are sent from Lotus Notes itself has no issues and I'm able to retrieve the inline images by using the document.generateXML() method and parsing through <picture> tag the stream. My real concern is how to extract from the external emails (like gmail). 回答1: This is a known issue in that a MIME inline attachment