【问题标题】:how to use @NameLookUp formula in lotus notes in Java如何在 Java 中的莲花笔记中使用 @NameLookUp 公式
【发布时间】:2014-04-29 09:33:32
【问题描述】:

谁能告诉我如何在 Lotus Notes 中使用 @NameLookUp 公式。我需要它从用户的规范形式中检索互联网地址。我在网上找不到任何示例。如果举个例子。

【问题讨论】:

  • 使用评估在Java中执行@formula:publib.boulder.ibm.com/infocenter/domhelp/v8r0/…
  • 感谢您的回复..我使用的公式为 String userName="CN=sam peat/OU=QUO/O=SCT@SCT";向量 vec=m_session.evaluate("@NameLookup([Exhaustive];\""+ userName + "\"; \"InternetAddress\")");这不是检索任何详细信息。我没有找到我要去的地方..请帮助..
  • 尝试不带“@SCT”的用户名。
  • 嘿knut ..它在删除@SCT部分后工作..谢谢
  • hi knut..你能把你的建议作为答案发表吗

标签: lotus-notes lotus-domino lotus domino-designer-eclipse


【解决方案1】:
@NameLookup([Exhaustive];@UserName;"InternetAddress")

【讨论】:

  • 感谢您的回复。我使用的公式为 String userName="CN=sam peat/OU=QUO/O=SCT@SCT";向量 vec=m_session.evaluate("@NameLookup([Exhaustive];\""+ userName + "\"; \"InternetAddress\")");这不是检索任何详细信息。我没有找到我要去的地方..请帮助..
  • 首先检查@NameLookup([Exhaustive];@UserName;"InternetAddress") 是否适用于当前用户
【解决方案2】:

如果您运行的是上面的 Domino 8,您应该可以这样做:

String address = "";
Directory d = session.getDirectory();
DirectoryNavigator dn = d.lookupNames("$Users","CN=sam peat/OU=QUO/O=SCT","InternetAddress",false);

那么就可以使用methods of the DirectoryNavigator class(即findFirstMatch()getFirstItemValue())来获取返回值。

【讨论】:

    【解决方案3】:

    使用Evaluate 在Java 中执行@NameLookup 公式。

    在您的示例中从参数用户名String userName="CN=sam peat/OU=QUO/O=SCT@SCT" 中删除“@SCT”。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多