Question

In Lotus Notes there is a simple way to access the directory from where to select some persons /users from a names field: ( this field is having Use Address dialog for choices for Choices )

enter image description here

I create a <xe:namePicker> to open the ( local ) names.nsf from where I can select/add some users:

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

Is there any chance I can choose from this xe:namePicker the above Lotus Notes places/directories as well in XPages? Thanks for your time.

Was it helpful?

Solution

Use the xe:namePickerAggregator to add your address books to a list shown as drop down list in name picker:

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>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top