sencha-touch

Get a particular value from Store in Sencha Touch?

为君一笑 提交于 2019-12-12 04:38:46
问题 I've created a model with following structure: Model Code: Ext.define('MyApp.model.FavoriteScreen', { extend: 'Ext.data.Model', config: { fields: [ { name: 'Name' }, { name: 'ScreenId' } ] } }); And I've created a store with following structure: Store code: Ext.define('MyApp.store.FavoriteStore', { extend: 'Ext.data.Store', requires: [ 'MyApp.model.FavoriteScreen' ], config: { autoLoad: true, model: 'MyApp.model.FavoriteScreen', storeId: 'FavStore', proxy: { type: 'ajax', api: { read: '/api

Sencha Touch TabBar + page navigation. Why it's breaking?

为君一笑 提交于 2019-12-12 03:19:04
问题 I'm a newbie to SenchaTouch. I have started working on an App and the results are this until now: http://mobz.com.br:86. (based on the Sencha-Touch-tabs-and-toolbars-demo) Now I started playing with it and I have difficulties to set things strait in my head. I have lot of JQuery experience, but regarding the design of this library, the coin haven't dropped yet. I got a TabPanel with 5 sections. I will focus only in one section cause there where my problem is. The Problem As you can see in my

Using highcharts in sencha touch - Can't render empty chart

倖福魔咒の 提交于 2019-12-12 03:04:22
问题 i'm trying to port some highchart charts from a php web appplication to a Sencha Touche mobile app. I want to put an empty chart in my View page and populate it dinamycally with some jsonp calls. Here's my view code (not all the 130 lines...): { xtype : 'panel', scrollable: true, html : 'INSERIRE QUI I GRAFICI E LE TABELLE', items : [ { xtype : 'panel', layout : 'fit', html : 'AREA PER GRAFICO', itemId : 'chartRenderPanel', margin: '180px' }, { //sample code, to be replaced with a consinstent

Local host for Sencha app development

大憨熊 提交于 2019-12-12 02:59:16
问题 1) I read from the Sencha site that the app can be developed locally using things like XAMPP installed on local Windows PC. Question -- Why need this local host when I can just use an external Web Host? 2) It was also mentioned that for Windows may not need XAMPP if Window's Internet Information Server (IIS) is already running. How do I know if my computer is running this and so don't need to install another local server? (I asking this because I had installed an XAMPP before on another

sencha touch How to make navigation like Touch-Theming example by sencha touch

夙愿已清 提交于 2019-12-12 02:54:07
问题 I am creating an app in which I have to create the popup like sencha touch theming expample to select the navigation items. I tried to see its code on github for a hint but don't know what I am missing hare is my code for header bar and the list button. Ext.define('ov_app.view.HeaderBar', { xtype : 'HeaderBar', extend:'Ext.Toolbar', config: { // xtype : 'toolbar', ui: 'plain', docked: 'top', cls: 'menuBar', border:0, defaults:{ border: 0, }, items: [ { iconCls: 'list', iconMask: true, ui:

How to access jsonp data using Ext.util.JSONP.request

浪子不回头ぞ 提交于 2019-12-12 02:47:55
问题 I am very new to sencha touch application, i've been tasked to get the json data from a cross domain and data looks like below { "data": { "error": [ {"msg": "Free API has moved to free.worldweatheronline.com\/feed\/weather.ashx url. Please make changes at your end. Please contact support team at info@worldweatheronline.com for any other issues." } ] }} How to trigger a callback function for this json data,i can able to request but the callback function is not triggering.Can anyone help me

JSONP request issue with Sencha Touch 2.1.1

僤鯓⒐⒋嵵緔 提交于 2019-12-12 02:44:12
问题 According to Sencha Touch 2.1 documentation, you make a json request with the following method Ext.data.JsonP.request(). When I use it I get: "Uncaught TypeError: Cannot call method 'request' of undefined". I get the same error whith Ext.util.JSONP.request(). How to make a jsonp request with Sencha Touch 2.1.1 ? 回答1: I guess you have not imported required classes. To work with Ext.data.JsonP.request , you need to add a require like requires:['Ext.data.proxy.JsonP'] in corresponding class. I

When loading a store in Sencha Touch 2, how can I stop the additional OPTIONS http request?

断了今生、忘了曾经 提交于 2019-12-12 02:19:21
问题 I'm writing an application in Sencha Touch 2, and as part of it I have a number of stores that use ajax proxy and json reader to load automatically from my external web service. The service is hosted on a different domain than the client, so I had to set Access-Control-Allow-Origin on the server to make this work. Everything works swimmingly with this setup, but I was using Fiddler to look at request performance and I noticed that every call of my webservice actually goes out twice. Once as

Why can not display datas in textfield?

你离开我真会死。 提交于 2019-12-12 02:01:00
问题 Why no data is displayed on the screen? Or tell me a good/correct way to fix or avoid this. Thank you. [in view block] Ext.define('CreditQuery.view.QueryResult', { extend: 'Ext.tab.Panel', xtype: 'queryresult', config: { defaults: { defaultType: 'textfield' }, items: [{ title: 'Credit', }, items: [{ label: 'CustNo', name: 'ACCOUNT_ID' },{ label: 'CustName', name: 'ACCOUNT_TEXT' }] }] } }) [in controller block] function setData(data){ data = { ACCOUNT_ID: "FN2180004", ACCOUNT_TEXT: "John1218"

Should I specify the proxy in the Model or the Store?

你。 提交于 2019-12-12 01:53:40
问题 I'm relatively new to cross-platform mobile development, and recently have been going through some basic tutorials on how to use Sencha Touch in my app. I have been confused by what seems to me as inconsistency in their methodology. So here is my question: I am using the MVC design pattern. When defining a proxy for storing data in an app, should I do this in the Model or in the Store? I have seen both done and am not sure which is better, or the cases when each should be used. The following