View Full Version : Migrating app from sencha touch 2.0 to sencha touch 2.1
11 Oct 2012, 11:12 PM
I want to migrate my app from sencha touch 2.0 to sencha touch 2.1.
Is there any document for this? What changes I need to do in my app code to make it work.
I imported the js file and app is running but nor properly so I am feeling that I need to change the code as well to make it work so I am looking for the document which can tell me what should be changed.
14 Oct 2012, 10:08 AM
There shouldn't be much you need to do. You can create a new app since you will be using the new Sencha Cmd and then copy your app files over to the new app.
14 Oct 2012, 9:36 PM
From where I can download the sencha touch sdk tool 2.1?
Do I need to include only sencha-touch-debug.js file to move the app on 2.1?
14 Oct 2012, 10:46 PM
Can you tell me what js files I need to include? It is giving below error :
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:8080/ReplayAnalytics/chart/Panel.js?_dc=1350283399258
Uncaught Error: [Ext.Loader] Failed loading './chart/Panel.js', please verify that the file exists sencha-touch-all-debug.js:8319 (http://localhost:8080/ReplayAnalytics/lib/sencha-touch-all-debug.js)
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:8080/ReplayAnalytics/draw/engine/ImageExporter.js?_dc=1350283399259
Uncaught Error: [Ext.Loader] Failed loading './draw/engine/ImageExporter.js', please verify that the file exists
I thing I need to include some js file from sdk to my app.
15 Oct 2012, 3:55 AM
http://www.sencha.com/forum/announcement.php?f=91&a=36 (has links to new Sencha Cmd)
That is because the path to Ext is incorrect
15 Oct 2012, 4:03 AM
What js file should be includec in index.html file to run the app which is displaying the chart?
15 Oct 2012, 4:06 AM
I have created one separate app with sencha touch cmd and I start moving files . It will almost replace all files with my app file so how it will migrate it?
Shall add Panel.js, imageExporter,js in index.html as it is telling that those are missing files for chart?
We will be great help if you can tell me what js files needs to be in index.html to make the chart work in 2.1 .
15 Oct 2012, 4:13 AM
You should try not to edit index.html unless you have to. For Touch classes just add them to the requires of Ext.application in app.js
15 Oct 2012, 4:16 AM
Which touch classes I need to add so that chart works properly?
I was adding these in index.html earlier
15 Oct 2012, 4:22 AM
Charts are included in the 2.1.0 releases so no need to use the old Touch Charts 2 beta.
15 Oct 2012, 4:27 AM
Yes I know but when I am adding only
it is throwing error that missing file chart/Panel.js, Draw/ImageExporter.js
I saw that these files are in src folder of sencha touch so I added those js file as well in my index.html and those error gone but it it not showing the chart.
15 Oct 2012, 4:32 AM
So start requiring the files where you are using them using the requires property in Ext.define
15 Oct 2012, 4:55 AM
I separately copied the js file in my lib folder and gave the path in index.html file but it is not showing any error but not showing the chart as well when I run the app.
Powered by vBulletin® Version 4.1.5 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.