Pagination with remote data for the Combobox

回眸只為那壹抹淺笑 提交于 2019-12-11 06:08:45

问题


I'm trying to load a combobox with remote data from a SQL database, Here is the Combobox Code,

{
    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();
                    }
                }
            },
        }]
}

I'm mapping this in a seperate mapper file as below,

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

and here,

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

now When I try to do a paging in the combobox,The paging tool bar appears and says the showing 1 of... so and so, but the next page thing doesn't work, what i am Missing please help me here,I have gone through many examples, Couldn't get it.

来源:https://stackoverflow.com/questions/42759544/pagination-with-remote-data-for-the-combobox

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