mercredi 28 mai 2014

Get the value store in variable

Hello,

I have the store, and I need to catch the first cell value and set in a variable.


My Code:



Code:



var me = this;
var data;

// Set all specialities by default
data = Ext.encode({
name : 'periodos-cdd'
});

me.store = new MBAInterface.store.PeriodoCDDVigente();

me.store.getProxy().setExtraParam('action', 'getreportcdd');
me.store.getProxy().setExtraParam('data', data);


me.store.on('load', me.onStoreLoad, me);
me.store.load();

var record = me.store.getAt(0);
console.log(record);

thanks for help

Andre Vieira

Brasil





Aucun commentaire:

Enregistrer un commentaire