我正在寻找NSF文件结构.任何人都可以发送链接,我会找到有关它的信息.
我想计算Lotusscript中的两个日期差异.例如(2011年10月18日 - 08/18/2011)= 71天
是否可以在Designer 8.5中更改端口号和主机?
每次用户打开时,如何更新已保存的Lotus文档中的字段.我想显示用户连接的服务器.现在它正在显示创建文档的服务器.
这是默认的字段值
@Name([CN]; @Subset(@DbName; 1))
Run Code Online (Sandbox Code Playgroud) 有没有办法监控数据库中文档使用情况的统计数据?
我有一个托管在本地服务器上的Lotus Notes数据库.我知道我可以从"数据库"属性的"信息"选项卡中的"用户详细信息..."中获取一些信息(右键单击来自多米诺设计师的数据库),这基本上显示了哪个用户访问了数据库以及执行了哪个CRUD操作,但我是寻找更深入的东西,特别是哪个文件最多和谁阅读.
我发现将日期存储在注释形式的Datetime字段中的唯一方法是:
theDoc2.replaceItemValue("lastAccess",session.createDateTime("Today"));
Run Code Online (Sandbox Code Playgroud)
但这只会创建一个Date,而不是DateTime。另外,我不想创建像“今天12”这样的静态时间,但我希望动态地使用当前日期时间。
使用这个我得到一个错误(调用方法NotesDocument.replaceItemValue(string,Date)null发生异常):
theDoc2.replaceItemValue("lastAccess",@Now());
Run Code Online (Sandbox Code Playgroud)
并使用此,窗体字段从日期/时间更改为文本数据类型,我想保留日期/时间类型:
theDoc2.replaceItemValue("lastAccess",@Now().toLocaleString);
Run Code Online (Sandbox Code Playgroud)
有任何想法吗?
我想知道如何通过Domino Data Service REST API 对Lotus Domino 8.5.3中的用户进行身份验证.
我可以在文档中看到"Request header for authorization",它说:
授权可能需要其他标头,具体取决于Domino服务器强加的安全性.
我还没有找到有关"其他标题"的信息.有谁知道如何验证?我们应该创建一个cookie并在每个请求头中发送它吗?
我在beforePageLoad事件上运行了一些java代码.我尝试在构造函数中使用ExtLibUtil类获取sessionAsSigner对象,但我不幸地收到null.可能是什么原因呢?这是我的课.
package com.mycompany.activiti;
public class ActivitiWorkflow {
private Session sAsSigner = null;
private String currentUser = null;
private Database db
public ActivitiWorkflow() throws NotesException {
currentUser = DominoUtils.getCurrentSession().getEffectiveUserName();
sAsSigner = ExtLibUtil.getCurrentSessionAsSigner();
db = sAsSigner.getCurrentDatabase();
//...
}
public void foo(){...}
}
Run Code Online (Sandbox Code Playgroud)
我使用以下代码在beforePageLoad事件上运行它:
importPackage(com.mycompany.activiti);
var workflow:ActivitiWorkflow = new ActivitiWorkflow();
workflow.foo();
Run Code Online (Sandbox Code Playgroud)
我使用以下堆栈跟踪读取它
com.ibm.xsp.exception.EvaluationExceptionEx: Error while executing JavaScript action expression
com.ibm.xsp.binding.javascript.JavaScriptMethodBinding.invoke(JavaScriptMethodBinding.java:126)
com.ibm.xsp.component.UIIncludeComposite.initBeforePageContents(UIIncludeComposite.java:672)
com.ibm.xsp.page.compiled.AbstractCompiledPage.initComponent(AbstractCompiledPage.java:339)
com.ibm.xsp.page.compiled.AbstractCompiledPage.createTree(AbstractCompiledPage.java:256)
com.ibm.xsp.page.compiled.AbstractCompiledPage.addComponent(AbstractCompiledPage.java:389)
com.ibm.xsp.component.UIIncludeComposite.buildContents(UIIncludeComposite.java:453)
com.ibm.xsp.page.compiled.AbstractCompiledPage.initComponent(AbstractCompiledPage.java:334)
com.ibm.xsp.page.compiled.CompiledComponentBuilder.buildChildren(CompiledComponentBuilder.java:123)
com.ibm.xsp.page.compiled.CompiledComponentBuilder.buildAll(CompiledComponentBuilder.java:84)
com.ibm.xsp.component.UIViewRootEx.buildContents(UIViewRootEx.java:1649)
com.ibm.xsp.component.UIViewRootEx2.buildContents(UIViewRootEx2.java:247)
com.ibm.xsp.page.compiled.AbstractCompiledPage.initComponent(AbstractCompiledPage.java:334)
com.ibm.xsp.page.compiled.AbstractCompiledPage.createTree(AbstractCompiledPage.java:256)
com.ibm.xsp.page.compiled.AbstractCompiledPage.createViewRoot(AbstractCompiledPage.java:167)
com.ibm.xsp.application.ViewHandlerExImpl._createViewRoot(ViewHandlerExImpl.java:521)
com.ibm.xsp.application.ViewHandlerExImpl.createViewRoot(ViewHandlerExImpl.java:567)
com.ibm.xsp.application.ViewHandlerExImpl.doCreateView(ViewHandlerExImpl.java:142)
com.ibm.xsp.application.ViewHandlerEx.createView(ViewHandlerEx.java:90)
com.ibm.xsp.webapp.FacesServlet.serviceView(FacesServlet.java:251)
com.ibm.xsp.webapp.FacesServletEx.serviceView(FacesServletEx.java:157)
com.ibm.xsp.webapp.FacesServlet.service(FacesServlet.java:160)
com.ibm.xsp.webapp.FacesServletEx.service(FacesServletEx.java:138)
com.ibm.xsp.webapp.DesignerFacesServlet.service(DesignerFacesServlet.java:103)
com.ibm.designer.runtime.domino.adapter.ComponentModule.invokeServlet(ComponentModule.java:576) …Run Code Online (Sandbox Code Playgroud) 我们有一个XPages应用程序,用户可以在其中附加多个文件附件.在2个月的时间内,数据库大小已经增长到25GB,我们现在面临着系统的缓慢.此外,一旦DB大小达到一定大小,多米诺骨牌将不允许在其中存储任何数据并限制读取访问权限.
将文件附件直接存储在某个物理位置而不是将它们存储在NSF文件中的最佳选项是什么.
请帮忙.
lotus-domino ×10
lotus-notes ×6
xpages ×5
lotusscript ×2
xpages-ssjs ×2
api ×1
datetime ×1
java ×1
lotus ×1
rest ×1