I have an inquiry with some fields in a grid, and I'd like to sort the records by two fields... first vendor, and then document #.
I have specified two sorters on my Main store, but my grid still only seems to sort on the vendor field, not also by the document # within each vendor.
The SQL statement in the backend RPG does not have an ORDER BY clause.
Any ideas?
I have specified two sorters on my Main store, but my grid still only seems to sort on the vendor field, not also by the document # within each vendor.
Code:
Ext.define('VXOPENPO.store.Main', { extend: 'Ext.data.Store', requires: [ 'VXOPENPO.model.Main', 'Ext.util.Sorter' ], constructor: function(cfg) { var me = this; cfg = cfg || {}; me.callParent([Ext.apply({ autoLoad: true, model: 'VXOPENPO.model.Main', storeId: 'main', sorters: [ { property: 'VENDOR' }, { property: 'DOCUMENT' } ] }, cfg)]); } });
Any ideas?
Comment