Search code examples
xpageslotus-noteslotus-dominoxpages-ssjs

How to query Global Address Book?


I wanted to understand if there is a feature like 'global address book' in lotus notes. If so, is there a way to view all the contacts in a dialog in web browser similar to something like address picker.


Solution

  • Use the xe:namepicker (and attach it to e.g.a xe:djextNameTextBox).

    Example:

    <xe:djextNameTextBox id="nameField" value="#{document.nameField}" multipleTrim="true" multipleSeparator=","></xe:djextNameTextBox>
    <xe:namePicker id="namePicker1" for="nameField">
        <xe:this.dataProvider>
            <xe:dominoNABNamePicker addressBookSel="all-public" nameList="peopleAndGroups">
            </xe:dominoNABNamePicker>
        </xe:this.dataProvider>
    </xe:namePicker>