分离Combobox的远程数据

时间:2017-03-13 08:50:27

标签: extjs combobox pagination

我正在尝试从SQL数据库加载带有远程数据的组合框, 这是Combobox代码,

{
    xtype: 'fieldset',
    title: 'Busname',
    items: [
        {
            xtype: 'myCombobox',
            name: 'busname',
            forceNewStore: true,
            pageSize:10,
            queryMode: 'local',
            displayField: "description",
            valueField: "description",
            mapperId: 'busnamefetch',
            maskRe: /[A-Za-z0-9]/,
            forceSelection: true,
            emptyText: 'Select Bus',
            margin: '15px',
            triggers: {
                clear: {
                    cls: 'x-form-clear-trigger',
                    handler: function () {
                        this.reset();
                    }
                }
            },
        }]
}

我将其映射到一个单独的映射文件中,如下所示,

{
key: "busnamefetch",
type: "dServ",
properties: [
    {
        "key": "namespace",
        "value": "Travelmapper"
    },
    {
        "key": "query",
        "value": "selectbusname"
    }]
}

,此处

 {
id: 'selectbusname',
namespace: 'Travelmapper',
statementType: 'CALLABLE',
query: 'SELECT busname as description FROM BusTable order by busname limit 10;'
}

现在当我尝试在组合框中进行分页时,会出现分页工具栏,并显示...显示1 ...所以,但下一页的内容不起作用,我想念的是什么请帮助我在这里,我经历了很多例子,无法得到它。

0 个答案:

没有答案