Hybrid View
-
30 Sep 2012 1:26 PM #1
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
-
22 Jan 2013 12:35 AM #2
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
-
26 Feb 2013 12:25 PM #3
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:
Thanks!PHP Code:Ext.Msg.confirm(
"Application Update",
"This application has just successfully been updated to the latest version. Reload now?",
function() {
window.location.reload();
}
);
Greg
-
3 Mar 2013 4:07 AM #4
i thing it is not correct, it is like this:
but it is not working on Architect right now, no onUpdate message appears..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(); } } );
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.


Reply With Quote