Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-1642 in a recent build.
  1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    45
    Vote Rating
    0
    lennonnz is on a distinguished road

      0  

    Default Store.load() screen updating

    Store.load() screen updating


    I just updated to PR4 today and testing if the bugs I found in PR3 where fixed and most where but.. still one more problem..

    I have 2 Stores and I update a second one when I get the value from the first one. It works and calls the Store and get the right values but the screen doesn't update at all. If I click on the 2nd selectfield and get the pull down menu (on iPhone or Non Mobile Browser) the data shows up.

    Bug.. or do I have to call something else after the load to make the screen refresh ?

    Full code at http://www.unlockit.co.nz/newsite/src/index.js
    Full application at http://www.unlockit.co.nz/newsite)

    Code:
    items: [                                {
                                    xtype: 'selectfield',
                                    name : 'carriercountrylist',
                                    label: 'Country',
                                    valueField : 'countryid',
                                    displayField : 'countryname',
                                    store : CountriesStore,
                                    listeners: {
                                            change: function() {
                                                    if (first == 0 ) { this.setValue(country_code);first = 1; }
                                                    CarriersStore.load({ params : {country:this.getValue()} });
                                                    }
                                            }
                                    },
                                    {
                                    xtype: 'selectfield',
                                    name : 'carrierlist',
                                    label: 'Carrier',
                                    store: CarriersStore,
                                    displayField: 'carriername',
                                    valueField: 'carrierid',
                                    placeholder: 'Select Carrier'
                                    }

  2. #2
    Sencha - Sencha Touch Dev Team Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    21
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Sounds like an issue in SelectField not responding to the refresh event in Store for some reason, we'll check into it.

    Sencha Inc

    Jamie Avins

    @jamieavins

  3. #3
    Sencha - Sencha Touch Dev Team rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,158
    Vote Rating
    6
    rdougan will become famous soon enough

      0  

    Default


    Nice. Fixed for the next release.
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.

  4. #4
    Sencha User
    Join Date
    Nov 2011
    Posts
    45
    Vote Rating
    0
    lennonnz is on a distinguished road

      0  

    Default


    Would you be able to let me know the fix (its its simple to change) (or a work around?) so I can continue my application until PR5 comes out..

    Thanks

Thread Participants: 2