• Name Picker - properties set but no names to choose -nempty

    By Dan Zeller 1 decade ago

    I have implemented the Name Picker in an XPage. The window appears, but there are no names to select.



    Here is the source code:

                        &lt;xe:namePicker id=&quot;namePicker1&quot; for=&quot;sr_Name1&quot;&gt;<br/>
                            &lt;xe:this.dataProvider&gt;<br/>
                                &lt;xe:dominoNABNamePicker<br/>
                                    addressBookDb=&quot;names.nsf&quot; addressBookSel=&quot;db-name&quot;&gt;<br/>
                                &lt;/xe:dominoNABNamePicker&gt;<br/>
                            &lt;/xe:this.dataProvider&gt;<br/>
                        &lt;/xe:namePicker&gt;<br/>
    



    I think I have this correct – I used this link to implement:

    http://www-10.lotus.com/ldd/ddwiki.nsf/dx/namePicker_Name_Picker_ddxl853



    Please let me know if there is a better example or if I have missed something.



    Thanks!

    Dan

    • Look at the demo DB

      By Philippe Riand 1 decade ago

      It shows how to use the name piker. Also, use firebug to see what is returned by the REST service.

      • Tried the demo on our server,nothing returned...

        By Dan Zeller 1 decade ago

        I tried the demo on our server (8.5.3 FP1 and Upgrade Pack 1) and it returned this in Firebug:

        {"@count":-1,"items":[]}
        
        No errors...
        
        Thanks!
        

        Dan

         

        • So it looks like an issue in your NAB configuration

          By Philippe Riand 1 decade ago

          Can you try to see what this returns:


          &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Vector&lt;?&gt; vc = session.getAddressBooks();
          
          Can you see your NAB in the returned list?
          

          Then, for these NAB, can you display the view ($VIMPeople)? Do you see the records?