• Name Picker Control Only Shows First 50 Users

    By Ryan Buening 1 decade ago

    The Name Picker control only shows the first 50 users in the list box for me. Is there an option or ability to have it show all I'm not seeing?

    • Use a dojo attribute

      By Philippe Riand 1 decade ago

      The dojo control features a maxRowCount property but it is not exposed as a property in the Xpages control. But you can easily set it using a generic dojo attribute on the control.

      • Thanks!

        By Ryan Buening 1 decade ago

        Thank you. That worked perfectly.

         

        <?xml version="1.0" encoding="UTF-8"?>
        
        <xp:view
        
        xmlns:xp="http://www.ibm.com/xsp/core"
        
        xmlns:xe="http://www.ibm.com/xsp/coreex">
        
        <xp:br></xp:br>
        
        <xe:djTextBox
        
        id="ProjectRequester"></xe:djTextBox>
        
        <xe:namePicker
        
        id="namePicker1"
        
        for="ProjectRequester">
        
        <xe:this.dataProvider>
        
        <xe:dominoNABNamePicker
        
        addressBookDb="names.nsf"></xe:dominoNABNamePicker>
        
        </xe:this.dataProvider>
        
        <xe:this.dojoAttributes>
        
        <xp:dojoAttribute
        
        name="maxRowCount"
        
        value="500">
        
        </xp:dojoAttribute>
        
        </xe:this.dojoAttributes>
        
        </xe:namePicker>
        
        </xp:view>
        
      • What's the absolute maximum here?

        By Lothar Mueller 1 decade ago

        works like a charm, thanks!

        But is there a start attribute as well? Or maybe even some sort of filtering so that we can work around the maximum lines per view page limit?

         

        Regards,

        Lothar

        • Yes

          By Philippe Riand 1 decade ago

          Look at the source of the dojo control