Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    May 2013
    Posts
    3
    Vote Rating
    0
    snelweg is on a distinguished road

      0  

    Default Unanswered: how-to display data from a store in the startupscreen

    Unanswered: how-to display data from a store in the startupscreen


    I have been busy for days to have some store values display on the startup screen of my application. If I use a list or anything, the data will display, but when I use

    Code:
    store = Ext.getStore('Contacts');
    in for example the
    Code:
    Launch
    function of the application,
    Code:
    store
    remains unset.

    This is driving me nuts, does someone have an example to get this working?


    Tia

  2. #2
    Sencha User
    Join Date
    May 2011
    Location
    Melbourne, Australia
    Posts
    89
    Answers
    5
    Vote Rating
    7
    Greg Arnott is on a distinguished road

      0  

    Default


    Have you looked at what is generated to see whether the store is being populated, or simply defined?

    Using your variables:

    Code:
    console.log('store at load %o', store);
    - check _data to see if the values are making it into raw data for the store too. If so, problem data assoc.

    If it's being populated via an AJAX call, chances are it's getting its data after page render.
    Try adding:

    Code:
    debugger;
    Which will not only open the console at this stage, it'll pause your app - thus allowing data to return from server before the following calls that render the data to the page.

    If this latter scenario is the case, an easy option is to add promise code.
    Promises is a coding technique which offers clean linear structure; success/error handlers; and best - the chance to have code fire when you have the data necessary, such as the response of an AJAX call.

    Ext.ux.Ajax - an extension which adds AJAX Promises to your app, and also offers a run-through of what this technique is about.

  3. #3
    Sencha User
    Join Date
    May 2013
    Posts
    3
    Vote Rating
    0
    snelweg is on a distinguished road

      0  

    Default


    Quote Originally Posted by Greg Arnott View Post
    Have you looked at what is generated to see whether the store is being populated, or simply defined?
    this is the same store that is used in a list a couple of pages on the application. So I guess the store is ok.

Thread Participants: 1

Tags for this Thread