marcn44
19 Apr 2010, 7:14 AM
I bougth Ext Designer one month ago. generated code is the one I usually use buildin ExtJs app. For example, I've set up a store
/*
* File: LaboStore.js
* Date: Mon Apr 19 2010 07:23:17 GMT+0200 (Paris, Madrid (heure d'été))
*
* This file was generated by Ext Designer version xds-1.0.0.8.
* http://www.extjs.com/products/designer/
*
* This file will be auto-generated each and everytime you export.
*
* Do NOT hand edit this file.
*/
LaboStore = Ext.extend(Ext.data.JsonStore, {
constructor: function(cfg) {
cfg = cfg || {};
LaboStore.superclass.constructor.call(this, Ext.apply({
storeId: 'MyStore',
baseParams: {pDate :'',pHeure:''},
autoLoad: true,
root: 'data',
url: 'http://www.mi2l.net/$EJS310/$Labos/data.php',
fields : [
{
name: 'Ligne',
type: 'string'
}
]
}, cfg));
}
});
new LaboStore();
If "autoload" is true, every thing is OK but I want to trigger store loading (changing parameters ...)
I've tried : LaboStore.load({params:{start:0,limit:30,pHeure:'10'}});
but I received the message "LaboStore.load is not a function"
What is the syntax to load a store defined as shown ?
Excuse my english, thank's for your help et congratulation for this beautiful product.
Marc
/*
* File: LaboStore.js
* Date: Mon Apr 19 2010 07:23:17 GMT+0200 (Paris, Madrid (heure d'été))
*
* This file was generated by Ext Designer version xds-1.0.0.8.
* http://www.extjs.com/products/designer/
*
* This file will be auto-generated each and everytime you export.
*
* Do NOT hand edit this file.
*/
LaboStore = Ext.extend(Ext.data.JsonStore, {
constructor: function(cfg) {
cfg = cfg || {};
LaboStore.superclass.constructor.call(this, Ext.apply({
storeId: 'MyStore',
baseParams: {pDate :'',pHeure:''},
autoLoad: true,
root: 'data',
url: 'http://www.mi2l.net/$EJS310/$Labos/data.php',
fields : [
{
name: 'Ligne',
type: 'string'
}
]
}, cfg));
}
});
new LaboStore();
If "autoload" is true, every thing is OK but I want to trigger store loading (changing parameters ...)
I've tried : LaboStore.load({params:{start:0,limit:30,pHeure:'10'}});
but I received the message "LaboStore.load is not a function"
What is the syntax to load a store defined as shown ?
Excuse my english, thank's for your help et congratulation for this beautiful product.
Marc