Search code examples
xpagesxpages-extlibxpinc

Can I have the extlib name picker running in xPINC lookup the directory on the server?


Is it possible to use the name picker in the extlib in an xPINC app, to pick from the server side address book? Currently running in the browser I am able to pull from the server side names.nsf, and while running as xpinc I pull the local names.nsf.

Do you know if this is possible? Really trying to accomplish "write once run everywhere".

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

Solution

  • To specify a different server you would do the following.

    addressBookDb="SERVER!!names.nsf"
    

    I recommend reading the "XPages Extension Library. A Step-by-Step Guide to the next generation of XPages Components" as it details this component more (Page 165).