XPages ValuePicker Limited to 1000

北慕城南 提交于 2019-12-02 04:09:17

问题


I use valuePicker and DojoListTextBox design element. If i have more than 1.000 values this valuepicker lists at most 1.000 records. How to increase that limitation? I just want it to list how many values i have.

<xe:valuePicker id="valuePicker10" for="djTextList1"
    dojoType="extlib.dijit.PickerCheckbox">
    <xe:this.dataProvider>
        <xe:simpleValuePicker caseInsensitive="false">
            <xe:this.valueList><![CDATA[#{javascript:
                try {var viewName="viewName";
                var dbname = new Array("", sessionScope.personel_db_Path);
                return @Trim(@Unique(@DbColumn(dbname, viewName,1).sort()));}
                catch(e) { print(e)}
            }]]></xe:this.valueList>
        </xe:simpleValuePicker>
    </xe:this.dataProvider>
</xe:valuePicker> 

Any suggestion is important, Cumhur Ata


回答1:


You need to add the maxRowCount Dojo attribute so your valuePicker looks like this:

<xe:valuePicker id="valuePicker10" for="djTextList1" dojoType="extlib.dijit.PickerCheckbox">
    <xe:this.dataProvider>
        <xe:simpleValuePicker caseInsensitive="false">
            <xe:this.valueList>
                <![CDATA[#{javascript:
                    try {var viewName="viewName";
                    var dbname = new Array("", sessionScope.personel_db_Path);
                    return @Trim(@Unique(@DbColumn(dbname, viewName,1).sort()));}
                    catch(e) { print(e)}
                }]]>
            </xe:this.valueList>
        </xe:simpleValuePicker>
    </xe:this.dataProvider>
    <xe:this.dojoAttributes>
        <xp:dojoAttribute name="maxRowCount" value="10000"></xp:dojoAttribute>
    </xe:this.dojoAttributes>
</xe:valuePicker>


来源:https://stackoverflow.com/questions/35179149/xpages-valuepicker-limited-to-1000

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