xpages包含SAVE按钮.xpages还包含InternetAddres字段.当用户单击SAVE按钮时,需要首先检查names.nsf - 如果在names.nsf视图中找不到InternetAddress值,则保存成功"($ Users)" - 如果在names.nsf视图中找到InternetAddress值,则保存失败"($ Users) "
如何编写脚本来做到这一点?
这是脚本的LotusScript版本:
Set namesview = namesdb.GetView( "($Users)" )
Set namesdoc = namesview.GetDocumentByKey( Lcase(doc.CurrentInternetAddress( 0 ) ), True )
If ( namesdoc Is Nothing ) Then '-- Create New Doc
Run Code Online (Sandbox Code Playgroud)
如何继续使用xpages?