小编Ari*_*iel的帖子

(Domino Notes)未设置对象变量

我在 Notes 文档上有一个操作按钮。

\n

我点击按钮后,会显示一条错误消息。我怎么解决这个问题?

\n

以下是错误消息和代码:

\n

[错误信息]

\n

未设置对象变量。

\n

[代码]

\n
Sub Click(Source As Button)\n    Dim ws As New NotesUIWorkspace\n    Dim uipr As NotesUIDocument\n    Set uipr = ws.CurrentDocument\n    If username(0) <> uipr.fieldgettext("PUR_DEPT_S01") And username(0) <> "SYSADMIN" Then\n        Dim i As Integer\n        Dim myflag As Variant\n        myflag = False\n        For i = 0 To Ubound(userrole)\n            If userrole(i) = "[DO_ALL_ACTION]" Then\n                myflag = True\n            End If\n        Next            \n        If myflag = False Then\n            Messagebox "ERROR"\n            Exit Sub\n        End If …
Run Code Online (Sandbox Code Playgroud)

lotus-notes lotusscript button

0
推荐指数
1
解决办法
656
查看次数

(XPage/JS svr-side)如何计算从今天起两周的年月日?

var TODAY_TEMP = @Text(@Year(@Today()))+@Right("0"+@Text(@Month(@Today())),2)+@Right("0"+@Text(@Day(@Today())),2);
Run Code Online (Sandbox Code Playgroud)

我需要从今天开始计算两周,我已经得到了今天,但我不知道如何得到两周后的日期。

很抱歉......我不熟悉如何在javascript服务器端编写程序......

xpages xpages-ssjs

0
推荐指数
1
解决办法
63
查看次数

标签 统计

button ×1

lotus-notes ×1

lotusscript ×1

xpages ×1

xpages-ssjs ×1