xpages命名字段选择目录

时间:2014-07-29 05:47:14

标签: xpages xpages-ssjs

在Lotus Notes中,有一种简单的方法可以访问目录,从names字段中选择某些人/用户:(此字段Use Address dialog for choicesChoices < / p>

enter image description here

我创建了一个<xe:namePicker>来打开(本地)names.nsf,我可以从中选择/添加一些用户:

    <xe:namePicker id="namePicker1" for="djTextarea5">
            <xe:this.dataProvider>
                                <xe:dominoNABNamePicker groups="false"
                                    nameList="peopleByLastName" addressBookDb="names.nsf"
                                    addressBookSel="db-name">
                                </xe:dominoNABNamePicker>
            </xe:this.dataProvider>
   </xe:namePicker>

我是否有机会在XPage中选择上述xe:namePicker上述Lotus Notes场所/目录? 谢谢你的时间。

1 个答案:

答案 0 :(得分:2)

使用xe:namePickerAggregator将地址簿添加到名称选择器中显示为下拉列表的列表中:

enter image description here

<xe:namePicker id="namePicker1" for="djTextarea5">
    <xe:this.dataProvider>
        <xe:namePickerAggregator>
            <xe:this.dataProviders>
                <xe:dominoNABNamePicker groups="false"
                    nameList="peopleByLastName" addressBookDb="names.nsf"
                    addressBookSel="db-name">
                </xe:dominoNABNamePicker>
                <xe:dominoNABNamePicker groups="false"
                    nameList="peopleByLastName" addressBookDb="namesOther.nsf"
                    addressBookSel="db-name">
                </xe:dominoNABNamePicker>
                ...
            </xe:this.dataProviders>
        </xe:namePickerAggregator>
    </xe:this.dataProvider>
</xe:namePicker>