Hybrid View

  1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    14
    Vote Rating
    0
    alpchen is on a distinguished road

      0  

    Default adding onUpdated to Ext.Application

    adding onUpdated to Ext.Application


    Hi, is there a way to add onUpdated function to Ext.Application in Sencha Architect?

    thanks

  2. #2
    Sencha User
    Join Date
    Jan 2013
    Posts
    1
    Vote Rating
    0
    jeanfabre is on a distinguished road

      0  

    Default


    Hi,

    I am also looking for some help on this... Did you found out? I am using Architect, and I can't find anything to give me access to this function

    bye,

    Jean

  3. #3
    Sencha - Support Team
    Join Date
    Mar 2012
    Location
    Lawrence, KS
    Posts
    216
    Vote Rating
    30
    greg.barry has a spectacular aura about greg.barry has a spectacular aura about

      0  

    Default Custom Function

    Custom Function


    You can add this as a custom function for the time being.

    1) Click on your Application in the Project Inspector
    2) Look for the group heading (Architect) I believe it's the first one
    3) The 3rd option is Functions
    4) Click the "+" button
    5) A new MyFunction1 will drop down
    6) Click the arrow
    7) fn = type onUpdated
    8) Click back on Application in the Project Inspector
    9) You should see your onUpdated() function in the app.js now
    10) Click on onUpload in the Project Inspector
    11) Add this to the function in the editor window:

    PHP Code:
    Ext.Msg.confirm(
                
    "Application Update",
                
    "This application has just successfully been updated to the latest version. Reload now?",
                function() {
                    
    window.location.reload();
                }
            ); 
    Thanks!
    Greg

  4. #4
    Sencha Premium Member
    Join Date
    Aug 2011
    Location
    Hamburg - Germany
    Posts
    69
    Vote Rating
    1
    isaid is on a distinguished road

      0  

    Default


    i thing it is not correct, it is like this:
    Code:
    Ext.Msg.confirm(
                "Application Update",
                "This application has just successfully been updated to the latest version. Reload now?",
                function(buttonId) {
                    if (buttonId === 'yes') {
                        window.location.reload();
                    }
                }
            );
    but it is not working on Architect right now, no onUpdate message appears..
    I am trying to get it on Architect but no way, this works only on a generated app directly from Sencha touch with the help of Jacky's production.js witch you have to copy into /microloader/path.

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