问题
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>
回答1:
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).
回答2:
With IBM Notes 9.0 there's a new "Run on Server" option that allows remote XPages applications to run directly on the Domino server. I am not sure how it affects address book lookups using the name picker control. But give it a try.
回答3:
I haven't done any Xpinc development because we do it all via browser, but you might try the viewpicklist control on openntf. I will ask Mark tomorrow to be sure and post his answer, but in the meantime you could give it a whirl.
来源:https://stackoverflow.com/questions/16430667/can-i-have-the-extlib-name-picker-running-in-xpinc-lookup-the-directory-on-the-s