PDA

View Full Version : Error in Record convert: function(value, data) in Extjs 2.3 Version



arunmatics
13 Jan 2014, 1:28 PM
Hi All,

i have a code like following. but i got error in extjs 2.3. i dont know weather the version its support or not. can anybody give me a clue ?

fields: [
'HOSTEDVOIP',
{ name: 'quantity', type: 'int' },
{ name: 'MRC', type: 'int' },
{ name: 'NRC', type: 'int' },
{
name: 'total', type: 'int',
convert: function(val, record) {
var qty = (record.data.quantity > 0) ? record.data.quantity : 1;
return (qty * (record.data.MRC));
}
}

scottmartin
14 Jan 2014, 2:30 PM
Ext2 is not supported, but here is the docs on convert
http://dev.sencha.com/deploy/ext-2.3.0/docs/

arunmatics
14 Jan 2014, 2:36 PM
Thanks. I go through the document fully.