如何从Lotus Notes启动应用程序,然后保存到Lotus数据库中? [英] How to launch an application from Lotus Notes, then later save into Lotus database?

查看:63
本文介绍了如何从Lotus Notes启动应用程序,然后保存到Lotus数据库中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一个开发Java Swing应用程序的团队中工作,现在我正在尝试帮助另一个团队将此应用程序集成到Lotus Notes中.不幸的是,我对Notes知之甚少,而且似乎找不到与我们要执行的操作相关的任何文档.

I work on a team that's developed a Java Swing application, and now I'm trying to help another team integrate this application into Lotus Notes. Unfortunately, I don't know that much about Notes, and can't seem to find any documentation related to what we're trying to do.

我们想要做的是让用户使用从Notes中传入的一些数据来启动我们的应用程序,让用户使用传入的数据,然后在准备保存时,将修改后的数据保存回Notes中.数据库.

What we want to do is have the user launch our application with some data passed in from Notes, have the user work with the passed in data, then when they are ready to save, the modified data is saved back into the Notes database.

我们使用Notes代理实现的第一部分-它能够启动我们的应用程序并传入原始数据-问题正在保存.代理似乎在调用我们的应用程序后完成并死",因此,当用户准备保存时,以后将无法获得对会话/数据库的引用. Lotus开发人员之一通过在代理中进行繁忙的等待循环以使其在启动应用程序后保持活动状态来使其正常工作-但这具有防止在打开应用程序时禁止其他使用Lotus Notes的副作用.这实际上不是一个可以接受的解决方案.

The first part we achieved with a Notes agent - it's able to launch our application and pass the original data in - the problem is saving. The agent seems to complete and "die" after the call to launch our application, so there's no way to get a reference to the session/database later when the user is ready to save. One of the Lotus developers kind of got it to work by making a busy wait loop in the agent to keep it alive after launching the application - but this has the side effect of preventing any other use of Lotus Notes while the application was open, so it's not really an acceptable solution.

任何人都知道我们尝试做的事是否可能吗?怎么做?是否链接到任何示例/文档?

Anyone know if what we're trying to do is possible? How to do it? Links to any examples/documentation on this?

推荐答案

一种选择是让Notes代理启动Java应用程序,并允许Java应用程序异步运行.然后可以直接将其写入Notes数据库(使用Notes Java API).您可以将客户端配置为与Notes客户端共享凭证,因此身份验证不是问题(或者您可以让Java应用程序对Notes进行身份验证). Java API非常简单-它基本上模仿了LotusScript中可用的后端类.如果需要将结果写回到特定文档中,则可以从Notes代理将DocumentUniqueID(docid)传递给Java应用程序,然后在Java应用程序中使用它来写回. (请参见Database类中的GetdocumentByUnid方法.)

One option is to have the Notes agent start the Java app and allow the Java app to run asynchronously; it can then write directly into the Notes database (using the Notes Java API). You can configure the client to share credentials with the Notes client, so authenticating is not an issue (or you can have the Java app authenticate to Notes). The Java API is fairly straightforward - it basically mimics the back-end classes available in LotusScript. If you need to write resuls back into a specific document, you can pass the DocumentUniqueID (docid) to Java app from the Notes agent, and then use that within the Java app to write back. (See the GetdocumentByUnid method in the Database class).

这篇文章有点陈旧,但我认为仍然有意义: http://www.ibm.com/developerworks/lotus/library /ls-Java_access_pt1/index.html

This article is a bit old, but I think still relevant: http://www.ibm.com/developerworks/lotus/library/ls-Java_access_pt1/index.html

这篇关于如何从Lotus Notes启动应用程序,然后保存到Lotus数据库中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆