1. #261
    Sencha User
    Join Date
    Jan 2008
    Location
    Toronto, Canada
    Posts
    480
    Vote Rating
    4
    elishnevsky is on a distinguished road

      0  

    Default


    assertValue() method is private (i.e. not documented), but it doesn't mean you can't call it

    Using api config you can load you form like this:
    Code:
    contactForm.load({
        success: function(form, action) {
            var states = action.result.states;
            var stateCombo = form.findField('state');
            stateCombo.getStore().loadData(states);
            stateCombo.assertValue();
        }
    });

  2. #262
    Sencha User
    Join Date
    Jun 2010
    Posts
    47
    Vote Rating
    0
    dan_b is on a distinguished road

      0  

    Default


    Quote Originally Posted by elishnevsky View Post
    But you have to remember, that callback functions are called after the form sets the values of the fields, so you should also call assertValue() method of the combo-box after populating it, so that it will show the name of the state instead of a code.

    Hope this helps.
    Ah, fantastic! I didn't know about that method. Nice one.

    I posted a reply but it got swallowed by the forum's spam trap.

  3. #263
    Sencha Premium Member
    Join Date
    Sep 2008
    Posts
    710
    Vote Rating
    6
    Bucs is on a distinguished road

      0  

    Default


    Is there any reason why I should not be able to use Ext.Direct.Mvc with Sencha Touch? I have configured everything properly as far as I know, and the Api file is create and viewable in Chrome debugger, but default page is failing with the message "Cannot call method 'addProvider' of undefined"...which really means this could be failing anywhere. I have added the call to "Ext.Direct.addProvider(Ext.app.REMOTING_API); " in the launch method of my main app page.

    I just want to make sure that it's possible to use Ext.Direct.Mvc with Touch and that there is not something obvious that I am missing here.

    Also, not sure if this is an Mvc question or Touch question so starting here.

    Thanks

  4. #264
    Sencha User
    Join Date
    Jan 2008
    Location
    Toronto, Canada
    Posts
    480
    Vote Rating
    4
    elishnevsky is on a distinguished road

      0  

    Default


    There is no support for Ext.Direct in Sencha Touch yet.

  5. #265
    Sencha Premium Member
    Join Date
    Sep 2008
    Posts
    710
    Vote Rating
    6
    Bucs is on a distinguished road

      0  

    Default


    Well that would explain that Thanks for quick reply Eugene. And of course my next annoying question for you is...."are you planning to build in support for this in the future, and any idea when?"

    Thanks again!

  6. #266
    Sencha User
    Join Date
    Jan 2008
    Location
    Toronto, Canada
    Posts
    480
    Vote Rating
    4
    elishnevsky is on a distinguished road

      0  

    Default


    Perhaps I wasn't clear. It's not that my library doesn't support Sencha Touch. What I meant is Sencha Touch framework doesn't have a codebase for Ext.Direct yet. AFAIK they will add in one of the next major releases.

  7. #267
    Sencha Premium Member
    Join Date
    Sep 2008
    Posts
    710
    Vote Rating
    6
    Bucs is on a distinguished road

      0  

    Default


    Yes, I understand that now as I sort of cross posted and found that out No worries, sounds like it's coming in 4.0, and Touch will have it then. Then I guess it depends on when you will update your implementation to support 4.0...due out 1st Q 2011.

  8. #268
    Sencha User
    Join Date
    Jan 2008
    Location
    Toronto, Canada
    Posts
    480
    Vote Rating
    4
    elishnevsky is on a distinguished road

      0  

    Default


    I am at the conference right now and haven't heard anything about any changes in Ext.Direct package in version 4.0. So Direct API will probably remain the same as in 3.0 which will make my implementation work as it is.

  9. #269
    Sencha Premium Member
    Join Date
    Sep 2008
    Posts
    710
    Vote Rating
    6
    Bucs is on a distinguished road

      0  

    Default


    That would be sweet. I'm jealous regarding the conference

  10. #270
    Sencha User
    Join Date
    Jan 2008
    Location
    Toronto, Canada
    Posts
    480
    Vote Rating
    4
    elishnevsky is on a distinguished road

      0  

    Default


    Quote Originally Posted by Bucs View Post
    That would be sweet. I'm jealous regarding the conference
    The conference is really great!

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..." hd porno faketaxi