如何使 xPages 名称选择器显示公司目录或扩展目录目录名称?

How to make xPages name picker to show Corporate Directory or Extended Directory Catalog Names?

我有一个简单的名字选择器:

<xe:namePicker id="namePicker1" for="myNameEditBox">
    <xe:this.dataProvider>
        <xe:dominoNABNamePicker
            valueNameFormat="common" 
            people="true" 
            nameList="people" 
            groups="false" 
            addressBookSel="all">
        </xe:dominoNABNamePicker>
    </xe:this.dataProvider>
</xe:namePicker>

但它只带来来自服务器 names.nsf 的名字,这些名字可能没有人在(应用程序运行的服务器)中。所以我需要让它像在 Notes Client

中一样工作

您可以使用xe:namePickAggregator查找多个地址簿

<xe:namePicker
    id="namePicker1"
    for="inputText1">
    <xe:this.dojoAttributes>
        <xp:dojoAttribute
            name="maxRowCount"
            value="10000">
        </xp:dojoAttribute>
    </xe:this.dojoAttributes>
    <xe:this.dataProvider>
        <xe:namePickerAggregator>
            <xe:this.dataProviders>
                <xe:dominoNABNamePicker
                    addressBookDb="server!!nab1.nsf"
                    addressBookSel="db-name"
                    groups="false"
                    people="true"
                    valueNameFormat="common">
                </xe:dominoNABNamePicker>
                <xe:dominoNABNamePicker
                    addressBookDb="names.nsf"
                    addressBookSel="db-name"
                    groups="false"
                    people="true"
                    valueNameFormat="common">
                </xe:dominoNABNamePicker>
            </xe:this.dataProviders>
        </xe:namePickerAggregator>
    </xe:this.dataProvider>
</xe:namePicker>