Mam formularz. W formularzu używam comboBox
z store
.dynamicznie wykorzystuj dodatkowe parametry w sklepie
{
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 statyczną extraParams
, że to działa.
proxy: {
type: 'ajax',
url: '/admin/contract/subcontractors/jsonsubcontractorslist',
extraParams: {
cid : 34
},
reader: {
type: 'json',
root: 'data'
}
},
Ale nie mam sposobu, aby dynamicznie przesłać identyfikator zamówienia do mojego sklepu.
lub store.getProxy() extraParams.cid = 34.; –
Gdzie napisać ten kod. Proszę pomóc – Navdeep
Powiedziałbym nawet, store.getProxy(). SetExtraParam ({...}) –