PDA

View Full Version : 4.2.1 Ext.data.reader getMessage



fdp
11 Jun 2013, 6:03 AM
It seems that

Ext.data.reader.getMessage no longer exists

inside src/data/reader/Reader.js the code is


if (me.messageProperty) {
message = me.getMessage(data);
}


but I was unable to find the getMessage method.

slemmon
11 Jun 2013, 11:37 AM
See the buildExtractors method source:
http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.data.reader.Reader-method-buildExtractors

fdp
11 Jun 2013, 11:48 PM
Thanks for reply.
I have no problem to retrieve the "message" from proxy Reader

My point is that Ext source code uses a method, getMessage, that it seems does not exists.

If so, then it is a bug to be fixed

evant
12 Jun 2013, 12:30 AM
It's a generated method, have a look at the link @slemmon pointed you at.

http://docs.sencha.com/extjs/4.2.1/source/Reader2.html#Ext-data-reader-Reader-method-buildExtractors