używaj dodatkowych parametrów w sklepie dynamicznie
Mam formularz. W formularzu używam acomboBox
zstore
.
{
xtype: 'combobox',
id: 'SubContractor',
name: 'SubContractor',
fieldLabel: 'Sub Contractors',
selectOnFocus: true,
editable: false,
displayField: 'FirstName',
store: 'jsonGetSubContractorsList',
typeAhead: true,
allowBlank: false,
typeAheadDelay: 20,
valueField: 'SubContractID',
width: 440,
labelWidth: 229
}
W sklepie w proxy mam statyczneextraParams
, to działa.
proxy: {
type: 'ajax',
url: '/admin/contract/subcontractors/jsonsubcontractorslist',
extraParams: {
cid : 34
},
reader: {
type: 'json',
root: 'data'
}
},
Ale nie rozumiem, jak dynamicznie wysłać identyfikator umowy do mojego sklepu.