1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| Ext.define('KitchenSink.store.dstore_Recherche_Numero_Presc',{
extend: 'Ext.data.JsonStore',
fields: ['Nom', 'Prenoms', 'numero'],
});
// console.log('Dans le store');
var store = Ext.create('Ext.data.JsonStore', {
model: 'KitchenSink.store.dstore_Recherche_Numero_Presc',
autoload:true,
totalProperty: 'totalCount',
proxy: {
type: 'ajax',
url : 'app/php/Recherche_Numero_Prescription.php',
reader: {
type: 'json',
root: 'data',
idProperty: 'id',
totalProperty: 'total'
}
}
}
); |
Partager