PDA

View Full Version : How find max value of a field in a local store ?



idal
9 Jan 2012, 5:39 AM
Hello,

How can I find the max value of an integer field in a local store ?

Laurent

hendricd
9 Jan 2012, 6:11 AM
@idal-- Give this a try:




var rows = Ext.pluck(store.getRange(), 'data'),
max = Ext.max( Ext.pluck( rows, 'integerField));