Lotus notes 如何在Java中的lotus notes中使用@NameLookUp公式

Lotus notes 如何在Java中的lotus notes中使用@NameLookUp公式,lotus-notes,lotus-domino,lotus,domino-designer-eclipse,Lotus Notes,Lotus Domino,Lotus,Domino Designer Eclipse,任何人都可以告诉我如何在lotus Notes中使用@NameLookUp公式。我需要它来从用户的标准格式检索internet地址。我在网络中找不到任何示例。如果给出一个示例,这将非常有帮助。如果您运行上面的Domino 8,您应该能够做到这一点: @NameLookup([Exhaustive];@UserName;"InternetAddress") String address = ""; Directory d = session.getDirectory(); DirectoryNa

任何人都可以告诉我如何在lotus Notes中使用@NameLookUp公式。我需要它来从用户的标准格式检索internet地址。我在网络中找不到任何示例。如果给出一个示例,这将非常有帮助。

如果您运行上面的Domino 8,您应该能够做到这一点:

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

然后您可以使用(即
findFirstMatch()
getFirstItemValue()
)获取返回值。

如果您正在运行上面的Domino 8,您应该能够执行以下操作:

String address = "";
Directory d = session.getDirectory();
DirectoryNavigator dn = d.lookupNames("$Users","CN=sam peat/OU=QUO/O=SCT","InternetAddress",false);
然后,您可以使用(即
findFirstMatch()
getFirstItemValue()
)获取返回值。

用于在Java中执行@NameLookup公式

从参数username
String username=“CN=sam-peat/OU=QUO/O中删除“@SCT”=SCT@SCT“
在您的示例中。

用于在Java中执行@NameLookup公式


从参数username
String username=“CN=sam-peat/OU=QUO/O中删除“@SCT”=SCT@SCT“
在您的示例中。

使用evaluate在Java中执行@formula:感谢您的回复..我使用的公式是String userName=“CN=sam peat/OU=QUO/O”=SCT@SCT"; Vector vec=m_session.evaluate(@NameLookup([detactive];\“”+userName+“\”;“InternetAddress\”);这不是检索任何详细信息。我不会出错的地方。plz帮助..尝试不带“@SCT”的用户名。嘿,克努特..删除@SCT部分后它会工作..谢谢克努特..你可以将你的建议作为答案发布吗请使用Java执行@formula:谢谢你的回复..我使用公式作为字符串用户名=“CN=sam peat/OU=QUO/O=SCT@SCT“Vector vec=m_session.evaluate(@NameLookup([详尽];\”+userName+“\”;“InternetAddress\”);这不会检索任何详细信息。我不会出错的地方..请提供帮助..尝试不带“@SCT”的用户名“.hey knut..删除@SCT部分后有效..谢谢!knut..你能把你的建议作为答案发布吗?谢谢回答..我使用的公式是字符串userName=“CN=sam peat/OU=QUO/O”=SCT@SCT"; Vector vec=m_session.evaluate(@NameLookup([detactive];\“”+userName+“\”;“InternetAddress\”);这不是在检索任何详细信息。我没有弄错的地方。请提供帮助。首先检查@NameLookup([详尽];@UserName;“InternetAddress”)是否适用于当前用户感谢您的回复。我使用的公式是String UserName=“CN=sam peat/OU=QUO/O=SCT@SCT"; Vector vec=m_session.evaluate(@NameLookup([detactive];\“”+userName+“\”;“InternetAddress\”);这不是在检索任何详细信息。我不知道我的错误所在。请提供帮助。首先检查@NameLookup([详尽];@UserName;“InternetAddress”)是否适用于当前用户