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