sencha-touch-2

How to perform action on the basis of response status while doing sync in Ext.js

人盡茶涼 提交于 2019-12-25 00:17:50
问题 This is my store MyStore.js Ext.define('myProject.store.MyStore', { config:{ storeId: 'MyStore', autoLoad: false, autoSync: false, allowSingle: true, clearOnPageLoad: true, model: 'abc.model.MyStoreModel', proxy: { type: 'rest', actionMethods: {create: 'POST', read: 'GET', update: 'POST', destroy: 'POST'}, url:'/services/rest/MyService/myService', reader: { type: 'json', rootProperty:MyServiceView.elements.collection', successProperty : 'success' }, writer: { type: 'json', root:

Passing values back to the 'View' from 'Controller' class

老子叫甜甜 提交于 2019-12-24 18:25:15
问题 In my VIew, i have added a button and when i click on it, the Controller class gets called. The value's in the View (textfield values) , will be sent over the URL from the web service. Then the server will return a JSON string shown below; {"value":"SUCCESS"} Now, i need to sent this JSON string back to the view, and the view will alert the user depending on the JSON response. If the JSON returned SUCCESS, then a Success alert will get displayed and if the JSON returned FAIL, then a Fail

Sencha Touch TPL and ITEM

﹥>﹥吖頭↗ 提交于 2019-12-24 17:22:13
问题 Guys let me explain my issues, i have a List view that load some elements from a store file, when i click a List item, i have a controller who push the data in a new Details view 'placesContainer places list':{ itemtap: function(list,index,target,record) { console.log("item "+record.get('name')+" pigiato"); var detailsView = Ext.create('MyApp.view.Details'); this.getPlacesContainer().push(detailsView); detailsView.setData(record.data); } } Ok here. Now what i want is to LOAD the same

Sencha Touch 2 Store TypeError

心不动则不痛 提交于 2019-12-24 17:08:44
问题 I'm following the video on the Sencha website, for creating my first application. This is the video I'm following: Video This is the code I'm using for the Blog tab: Ext.define('GS.view.Blog',{ extend: 'Ext.navigation.View', xtype: 'blogpanel', requires: [ 'Ext.dataview.List', 'Ext.data.proxy.JsonP' ], config: { title: 'Blog', iconCls: 'star', items: { xtype: 'list', itemTpl: '{title}', store: { autoLoad: true, fields: ['title', 'author', 'content'], root: { leaf: false }, proxy: { type:

Sencha Touch 2 Store TypeError

旧巷老猫 提交于 2019-12-24 17:08:24
问题 I'm following the video on the Sencha website, for creating my first application. This is the video I'm following: Video This is the code I'm using for the Blog tab: Ext.define('GS.view.Blog',{ extend: 'Ext.navigation.View', xtype: 'blogpanel', requires: [ 'Ext.dataview.List', 'Ext.data.proxy.JsonP' ], config: { title: 'Blog', iconCls: 'star', items: { xtype: 'list', itemTpl: '{title}', store: { autoLoad: true, fields: ['title', 'author', 'content'], root: { leaf: false }, proxy: { type:

Sencha touch application loader keeps blinking

陌路散爱 提交于 2019-12-24 15:38:54
问题 I just setup an all basic sencha touch application. Just did sencha generate app *Name* *Directory* . The app is generated without any error, but when I start the server and load the application in Chrome (just updated to the latest version), I get a blue screen with three blinking dots. In the JS console, there is this: Uncaught TypeError: Object [object Object] has no method 'append'", occured in sencha-touch.js Is this a common issue? Did I do anything wrong? The app is generated with

update a nested list in sencha touch 2

馋奶兔 提交于 2019-12-24 14:27:26
问题 I'm having trouble redrawing my nested list with sencha touch 2. My code looks something like the following; var data = {items:[{text:'hello', leaf:true}]}; Ext.application({ name:'main', launch:function(){ Ext.define('ListItem', { extend: 'Ext.data.Model', config: { fields: ['text'] } }); var treeStore = Ext.create('Ext.data.TreeStore', { id: 'mystore', model: 'ListItem', defaultRootProperty: 'items', root: data}); Ext.create('Ext.NestedList', { id:'mylist', fullscreen: true, store:

Adding mousewheel to Sencha Desktop App

梦想的初衷 提交于 2019-12-24 11:45:01
问题 So the supposed advantage to using Sencha is being able to have 1 code base for multiple platforms. I have a project I need to be on iOS, Android, PC, and Mac. I have found that I can use Sencha Touch to build to mobile devices and those handle finger swipe events automatically. The problem I have encountered is when I am building a desktop app then it doesn't respond to my mousewheel. I have been on the Sencha forums and this question is unanswered in one place, and in another they promised

Build error with Sencha Command

我们两清 提交于 2019-12-24 11:34:16
问题 I just upgraded my app to Sencha Touch 2.1 and I'm now trying to build it for production. Unfortunately, I get the following error message : Sencha Cmd v3.0.0.250 [DBG] checking /Users/titouanvanbelle/Documents/workspace/app/sencha/.sencha/app for plugin.xml [DBG] checking /Users/titouanvanbelle/Documents/workspace/app/sencha/.sencha/workspace for plugin.xml [DBG] checking /Users/titouanvanbelle/bin/Sencha/Cmd/3.0.0.250/plugins/touch/current for plugin.xml [DBG] checking /Users

Sencha Touch 2: Cannot find module `/sencha-sdk-dir/command/sencha.js`

淺唱寂寞╮ 提交于 2019-12-24 10:46:49
问题 I am on Arch Linux x64 with Sencha Touch 2 x64 installed. From the SDK directory, I ran ./sencha [jiewmeng@JM SenchaSDKTools-2.0.0-beta3]$ ./sencha [WARN] The current working directory (/opt/SenchaSDKTools-2.0.0-beta3) is not a recognized Sencha SDK or application folder. Running in backwards compatible mode. Sencha Command v2.0.0 Beta 3 Copyright (c) 2012 Sencha Inc. usage: sencha COMMAND [ARGS] The available commands are: build build a JSB project create bootstrapdata generate boostrap data