Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Extjs 如何在服务器请求中添加附加参数?_Extjs_Extjs3 - Fatal编程技术网

Extjs 如何在服务器请求中添加附加参数?

Extjs 如何在服务器请求中添加附加参数?,extjs,extjs3,Extjs,Extjs3,我想发送带有组合ID的附加值。 如何传递它?来自: 要将新参数添加到现有参数,请执行以下操作: var SiteComboConfig = { fieldLabel: 'Site', xtype: 'combo', name: 'cloudsiteCombo', id: ' cloudsiteCombo', store: new Ext.data.JsonStore({ autoDes

我想发送带有组合ID的附加值。 如何传递它?

来自:

要将新参数添加到现有参数,请执行以下操作:

var SiteComboConfig = {
        fieldLabel: 'Site',
        xtype: 'combo',
        name: 'cloudsiteCombo',
        id: ' cloudsiteCombo',
        store: new Ext.data.JsonStore({
                autoDestroy: true,
                fields: [
                    {name: 'id', sortType: 'string'},
                    {name: 'name', sortType: 'string'}
                ],
                autoLoad: true,
                root: 'grid.items',
                url: CW.Context + '/ajax/Handler/getSites'
            }),
            tpl: '<tpl for="."><div ext:qtip="{name}" class="x-combo-list-item">{name:ellipsis(56, true)}</div></tpl>',
            allowBlank: false,
            preventMarkOnBlank: true,
            disableKeyFilter: true,
            editable: false,
            forceSelection: true,
            emptyText: 'Select a Site',
            valueField: 'id',
            displayField: 'name',
            mode: 'remote',
            triggerAction: 'all',
            hiddenName: 'cloudsite',
            onHide: function(){this.getEl().up('.x-form-item').setDisplayed(false);}, 
            onShow: function(){this.getEl().up('.x-form-item').setDisplayed(true);},
            // nominally, on change, we should populate the archive type pulldown with the known types for this server
            listeners: {
                'select': { // handle new site ID
                    fn: function(combo, record, index) {

                        combo.store.setBaseParam('evclocator', 'tpp'); 
                        combo.store.reload();

                        /*var siteID = combo.getValue();
                        params = {
                            siteID: siteID
                        };
                        Ext.Ajax.request({
                            url: 'ajax/Handler/getLicensedArchiveTypesForSite',
                            success: function(response, opts) {
                                var resp = Ext.decode(response.responseText);
                                this.updateSubTypeStore(resp.grid.items);                            
                            },
                            params: params,
                            scope: this
                        })*/
                    },

                    scope: this
                }
            }
        };
lastOptions = myStore.lastOptions;
Ext.apply(lastOptions.params, {
    myNewParam: true
});
myStore.reload(lastOptions);