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

时间:2018-07-27 04:44:39

标签: javascript xpages lotus-notes xpages-extlib

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

<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>

,但它仅带来服务器名称(.fs)中可能没有人员的名称(应用运行的服务器)。所以我需要使其像在Notes Client中一样工作

enter image description here

1 个答案:

答案 0 :(得分:0)

您可以使用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>