-
19 Apr 2010 7:14 AM #1
Store generated by Ext Designer
Store generated by Ext Designer
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
If "autoload" is true, every thing is OK but I want to trigger store loading (changing parameters ...)HTML Code:/* * 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. * [url]http://www.extjs.com/products/designer/[/url] * * 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();
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
-
19 Apr 2010 4:11 PM #2
LaboStore is a JavaScript class. Because you have provided a storeId to your class you can retrieve it and load it via the StoreMgr.
Code:var ds = Ext.StoreMgr.lookup('MyStore'); ds.load({params:{start:0,limit:30,pHeure:'10'}});Aaron Conran
@aconran
Sencha Architect Development Team
-
19 Apr 2010 9:07 PM #3
Hi Aaron,
Naturally, that works. Thank you for having helped me. It is fantastic to create a product like ExtDesigner and help the users to take it in hand.
I see that I have to make progress in JS and learn the classes, It is very kind to help the new users.
Thank you for the time you spend to support !
Greetings from Switzerland.
Marc
PS : I've read "Learning Ext JS" and "Ext JS Cookbook" but thy don't cover the basis of JS ...
-
28 Apr 2010 12:14 PM #4
-Shea
My Blog:VinylFox | Twitter:@VinylFox | JavaScript Magazine:JSMag | Curator of the Baltimore/DC JavaScript Meetup | Author: Learning ExtJS 3.x Book
ExtJS Extensions & Plugins: GMapPanel UX | HtmlEditor Buttons Plugin | Selection Enabler Plugin | Grid DataDrop Plugin | Additional Ext.Fx
Sencha Touch Plugins: Swipe Tabs | List Pull Refresh | Accelerometer Tabs
-
29 Apr 2010 9:09 AM #5
Thank's for the suggestion VinylFox, It is always valuable to have advice from specialists,
Marc


Reply With Quote
