Hybrid View

  1. #1
    Sencha User
    Join Date
    Oct 2009
    Location
    Geneva (Switzerland)
    Posts
    7
    Vote Rating
    0
    marcn44 is on a distinguished road

      0  

    Default 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

    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();
    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

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,168
    Vote Rating
    119
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    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

  3. #3
    Sencha User
    Join Date
    Oct 2009
    Location
    Geneva (Switzerland)
    Posts
    7
    Vote Rating
    0
    marcn44 is on a distinguished road

      0  

    Default


    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 ...

  4. #4
    Sencha - Community Support Team VinylFox's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD
    Posts
    1,501
    Vote Rating
    7
    VinylFox will become famous soon enough VinylFox will become famous soon enough

      0  

    Default


    For basic JavaScript I would suggest "Object-Oriented JavaScript" by Stoyan Stefanov.

  5. #5
    Sencha User
    Join Date
    Oct 2009
    Location
    Geneva (Switzerland)
    Posts
    7
    Vote Rating
    0
    marcn44 is on a distinguished road

      0  

    Default


    Thank's for the suggestion VinylFox, It is always valuable to have advice from specialists,

    Marc

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."