sencha-touch-2

Sencha Touch 2: data intigration or how to share dynamic information between sencha and javascript

限于喜欢 提交于 2019-12-11 17:56:23
问题 I'd like to start quick. What is my problem: Within ST2 I structured my application with the MVC pattern. I have a store, a model, a controler and the views (for more information scroll down). Workflow: I click a list item ( List View with a list of elements from store) Controller acts for the event 'itemtap' Controller function is looking for main view and pushes a detail view Record data will be set as data Detail view uses .tpl to generate the output and uses the data Problem Now I want to

How to filter the Store?

纵然是瞬间 提交于 2019-12-11 17:27:19
问题 Who knows how to filter the Store right? I tried to do it in listener of leafItemTap of Nested List, but my leaf items not tapping now. Massage in console: "Uncaught TypeError: Cannot call method 'filter' of undefined " Here is Nested list, where Store must be filtered: Ext.define('Application.view.SplitView', { extend: 'Ext.Container', xtype: 'splitview', config: { layout: 'card', store: null }, initialize: function() { this.nestedList = Ext.create('Ext.NestedList', { title : 'Рецепты',

How to consume external webservice in sencha touch2

自古美人都是妖i 提交于 2019-12-11 16:48:55
问题 I am new to sencha touch2 and i want to consume external web service in sencha touch2.I have written code for this cause, showing alert msg not working! in console giving error like this XMLHttpRequest cannot load http://localhost/SLS.BRND.Services/Service1.asmx/Helloworld?_dc=1336466078991&method=Helloworld&format=json. Origin http://localhost:49692 is not allowed by Access-Control-Allow-Origin. app/view/Blog.js?_dc=1336466047687:27Response Status:- 0 please help me what is the problem.

Sencha Touch app appears blank in browser

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 15:41:54
问题 I have a really simple Sencha Touch 2.0.1 app made with Sencha Architect 2.0.0: a list of items loaded from a local json file. If I export it to an APK and install it on my droid, it displays perfectly. However, when I try to preview it in my browser it appears as a blank white screen. I have tried it in both Chrome and Safari. Safari displayed it perfectly the FIRST time I loaded the page, but I have never gotten it to work again. I tried clearing internet data, to no effect. Since I have no

How to open a new view on button click in sencha touch 2

萝らか妹 提交于 2019-12-11 14:38:35
问题 I am having two views Search.js with items fieldsets and a button ContactList.js with list of contacts I have a controller Main.js I want to implement a functionality in Sencha Touch 2 that, when button on Search.js is clicked, contact list from ContactList.js should be displayed. How do I do this? 回答1: First of all, add an action or an id to your Search button in the view { title: "My Button", xtype: 'button', action: 'call-contact-list', } Then in your controller, you need to implement what

Set page size Sencha touch

本秂侑毒 提交于 2019-12-11 12:15:47
问题 I've been trying to set a page size so that my app runs faster. I'm reading from a huge xml file (thousands of rows) and I want to use the ListPaging plugin to load only one 'page' at a time. Here is my list: xtype : 'list', plugins: { xclass: 'Ext.plugin.ListPaging', autoPaging: true, loadMoreText : 'Loading more...', noMoreRecordsText : 'loaded' }, store : 'mainStore', height : '100%', layout : 'fit', id: 'myList', flex : 5, itemTpl : "foo" Here is my store: config: { model : 'myApp.model

how to display list and other labels in single page using sencha touch2

放肆的年华 提交于 2019-12-11 12:00:11
问题 I am new to sencha touch2. i want to display some text labels below in that want display list. so i have define some labels and accessing twitter service it will give list of data. below is my code. in this code if I comment the extend: 'Ext.form.Panel', if i used extend: 'Ext.navigation.View' then list data will display but wont display defined labels. if I comment the extend: 'Ext.navigation.View', if i used extend: 'Ext.form.Panel' then list data wont display but it will display defined

How to set a position to Ext.Msg.show in sencha

半腔热情 提交于 2019-12-11 11:42:14
问题 How can I set a different position for Ext.Msg.show in senchatouch. I have tried using the methods msg.getDialog().getPositionEl().setTop(50); & msg.getDialog().setPosition(undefined,50) However I am getting a error Object [object Object] has no method 'getPositionEl' or Object [object Object] has no method 'getDialog' . I have even checked these methods in my MessageBox.js file in sencha but they do not exist. However almost solution on the net seems to recommend these methods.Experts could

Sencha Touch2: Parsing nested Json data

老子叫甜甜 提交于 2019-12-11 10:46:23
问题 Hi am new to Sencha Touch2, facing problem while parsing nested Json data and showing in list. Here is my Json looks like: [{"task": {"agent":{"activeFlag":"false", "shiftId":"0","id":"0","deleteFlag":"false"}, "id":"124","status":"Unassigned", "assignment":{"pnr": {"locator":"ABCDEF","connectTime":"0","id":"0"}, "id":"123", "alerts":"Delay" "customers":[ {"frequentNumber":"12345", "doNotMissFlag":"false", "customerScore":"0", "lastName":"XYZ", "firstName":"ABC", "primaryFlag":"true",

Reading json with key:value in ext.store in sencha touch 2

不羁岁月 提交于 2019-12-11 09:47:40
问题 I'm trying to load a particular json file into a listview; but sencha proxy doesn't seem to understand the key pairs of "CurrencyName" and "Value". I'm clueless on how to associate those two values into usable data. Here's the json: { "timestamp": 1335294053, "base": "USD", "rates": { "AED": 3.6732, "AFN": 48.32, "ALL": 106.040001 } } my store: proxy: { type: 'ajax', url: 'http://localhost/CurrencyFX/latest.json', reader: { type: 'json', rootProperty: 'rates' } }, my model: Ext.define(