有更多未记录的功能
// Document helpers
addFunction(FCT_TOPPARENTID, "@TopParentID", "(doc:W):T"); // $NON-NLS-1$ $NON-NLS-2$
addFunction(FCT_TOPPARENTUNID, "@TopParentUNID", "(doc:W):T"); // $NON-NLS-1$ $NON-NLS-2$
// URL handling
addFunction(FCT_FULLURL, "@FullUrl", "(str:T):T"); // $NON-NLS-1$ $NON-NLS-2$
addFunction(FCT_ABSOLUTEURL, "@AbsoluteUrl", "(str:T):T"); // $NON-NLS-1$ $NON-NLS-2$
addFunction(FCT_ENCODEURL, "@EncodeUrl", "(str:T):T"); // $NON-NLS-1$ $NON-NLS-2$
addFunction(FCT_ISABSOLUTEURL, "@IsAbsoluteUrl", "(str:T):T"); // $NON-NLS-1$ $NON-NLS-2$
// XPages helpers
addFunction(FCT_ERRORMESSAGE, "@ErrorMessage", "(str:Tcomp:W):V"); // $NON-NLS-1$ $NON-NLS-2$
addFunction(FCT_WARNINGMESSAGE, "@WarningMessage", "(str:Tcomp:W):V"); // $NON-NLS-1$ $NON-NLS-2$
addFunction(FCT_INFORMATIONMESSAGE, "@InfoMessage", "(str:Tcomp:W):V"); // $NON-NLS-1$ $NON-NLS-2$
// Domino View
addFunction(FCT_VIEWICONURL, "@ViewIconUrl", "(icon:I):T"); // $NON-NLS-1$ $NON-NLS-2$
addFunction(FCT_NORMALIZESUBJECT, "@NormalizeSubject", "(subject:T):T", "(subject:T, maxlength:I):T"); // $NON-NLS-1$ // $NON-NLS-2$ // $NON-NLS-3$
一年前我在博客上写过这个http://www.eknori.de/2011-11-22/extension-library-8-5-3-undocumented-functions/
您可以在 ExtensionLibraryOpenNTF-853.20121022-1354\srcOpenNTF\eclipse\plugins\com.ibm.xsp.extlib.domino\src\com\ibm\xsp\extlib\javascript 目录中的 NotesFunctionsEx.java 文件中找到它们(解压缩 srcOpenNTF.先压缩)
您可以将代码用作如何构建自己的 SSJS 扩展的参考(http://www.openntf.org/Internal/home.nsf/project.xsp?databaseName=CN=NotesOSS2/O=NotesOSS!!Projects \ pmt.nsf&documentId=6159D09FC2EA663C862579F30028803E&action=openDocument)
因此,如果这些函数在未来版本中不会成为 extLib 的一部分,那么如果您不安全,您可以将其包含到您自己的扩展中......