72
30 Sep 2007, 6:30 PM
Hi there,
subject is in title. When i am do the formAction.submit() and want to add extra parameters (fetch values from other form by getValues()) in place of ComboBox values are texts instead of vals. Checked in Firebug.
When i try to get it from just one ComboBox by getValue() it is ok.
Yes, i got right code, and i got set valueField.
I hope this is not a behavior!
Heres part of combobox initialization:
new Ext.form.ComboBox({
fieldLabel:'Algorithm',
store:new Ext.data.SimpleStore({
fields:['id','type'],
data:[
['AES','AES (Recomended)'],
['RC4','RC4']
]
}),
id:'AuthenticationAlgorithm',
name:'AuthenticationAlgorithm',
displayField:'type',
valueField:'id',
mode:'local',
typeAhead:true,
allowBlank:false,
forceSelection:true,
triggerAction:'all',
emptyText:'Select encryption algorithm',
selectOnFocus:true,
value:'AES'
})
subject is in title. When i am do the formAction.submit() and want to add extra parameters (fetch values from other form by getValues()) in place of ComboBox values are texts instead of vals. Checked in Firebug.
When i try to get it from just one ComboBox by getValue() it is ok.
Yes, i got right code, and i got set valueField.
I hope this is not a behavior!
Heres part of combobox initialization:
new Ext.form.ComboBox({
fieldLabel:'Algorithm',
store:new Ext.data.SimpleStore({
fields:['id','type'],
data:[
['AES','AES (Recomended)'],
['RC4','RC4']
]
}),
id:'AuthenticationAlgorithm',
name:'AuthenticationAlgorithm',
displayField:'type',
valueField:'id',
mode:'local',
typeAhead:true,
allowBlank:false,
forceSelection:true,
triggerAction:'all',
emptyText:'Select encryption algorithm',
selectOnFocus:true,
value:'AES'
})