XPages ValuePicker限制为1000

时间:2016-02-03 14:00:58

标签: xpages picker

我使用valuePicker和DojoListTextBox设计元素。如果我有超过1.000个值,则此值选择器最多列出1.000条记录。如何增加这个限制?我只想列出我有多少价值。

<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> 

任何建议都很重要, Cumhur Ata

1 个答案:

答案 0 :(得分:3)

您需要添加maxRowCount Dojo属性,以便您的valuePicker如下所示:

<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>