Xpages xe:namePicker only returns the first 50 names in the selection dialog

对着背影说爱祢 提交于 2020-01-07 05:05:02

问题


I am using the xe:namepicker for some time and setting the source as a xe:dominoViewNamePicker as follows:

<xe:namePicker id="namePicker5" for="SiteAdm" dialogTitle="Add one Site Administrator">
    <xe:this.dataProvider>
        <xe:dominoViewNamePicker viewName="CoordinatorsByEmail"
            labelColumn="CoordEmail">
        </xe:dominoViewNamePicker>
    </xe:this.dataProvider>
</xe:namePicker>

The problem I am having is the returned list of names is being cut off at 50. Users can use the search box in the dialog to start the at another point, but it is always limited to 50 names to choose from.

None of the documented properties indicate if there is a way or setting to set or remove this limitation.

Any ideas on how to fix this?


回答1:


Thanks go to Frantisek for pointing me in the right direction. The limitation applies to the xe:valuePicker and the xe:namePicker for any data provider. The solution is to add the maxRowCount dojo attribute with your own limit:

            <xe:namePicker id="namePicker1" for="inputText1">
                <xe:this.dataProvider>
                    <xe:dominoNABNamePicker addressBookSel="all" nameList="people"></xe:dominoNABNamePicker>
                </xe:this.dataProvider>
                <xe:this.dojoAttributes>
                    <xp:dojoAttribute name="maxRowCount" value="10000">
                    </xp:dojoAttribute>
                </xe:this.dojoAttributes>
            </xe:namePicker>


来源:https://stackoverflow.com/questions/45200820/xpages-xenamepicker-only-returns-the-first-50-names-in-the-selection-dialog

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!