FAQ Database Discussion Community


Rendering of data points in Sencha charts

extjs,sencha-touch,sencha-touch-2,sencha-touch-2.1
I have a Sencha chart where I render some of the data points in a specific color depending on the values in in my data store. This works fine also long as I'm not zooming the chart, but as sone as I zoom the x-axis of the chart the highlighted...

Sencha Touch: Clear listeners on an individual list item

sencha-touch,sencha-touch-2
In a TreeStore I have a list item / record which differs from all the other records. I want to execute window.open() whenever the user clicks on this specific record. The other records should maintain their usual functionality. (leafItemTap => detailCard) I have tried all events of NestedList that made...

Does sencha touch supports windows8

windows,sencha-touch,visual-studio-cordova
I am developing windows8 application for that I am using sencha touch and cordova. I am able to add the platform using cordova platfrom add windows But when I am importing the same windows project in visual studio running on my windows8.0 maching it's saying you need windows 8.1. I...

Can I use sencha extjs stores and models for sencha touch?

javascript,extjs,extjs4,sencha-touch
Can I use sencha extjs stores and models for sencha touch? I am trying to create a mobile application using sencha touch. I already have the application created with sencha extjs, but want to know if generally the stores and models from my extjs application will work for the sencha...

ExtJS and Sencha Touch: Adding a second panel at bottom with text that depends on a function call

javascript,extjs,sencha-touch,sencha-touch-2
I have Sencha Touch application that currently looks like this. The top navigation bar is appearing correctly as intended, but I want to have a bottom bar as well. I also want the bottom bar to display text based on values I get from stores. I am using Sencha Touch...

Sencha Touch 2 Grid

javascript,php,sencha-touch
I'm using Sencha Touch 2.4.1 (free version) and I want to create a grid in a view. Is it possible? And if so, how can I create it? In some forums I have read that this is only possible in the purchase version....

Sencha Touch: perform read (load) operation from singleton model

sencha-touch,sencha-touch-2,senchatouch-2.4
I have a singleton model and an associated AJAX proxy. If I make a call to MyModel.load(), I get the error: MyModel.load is not a function However, you do have load in Model: http://docs.sencha.com/touch/2.4/2.4.1-apidocs/#!/api/Ext.data.Model-static-method-load On the contrary, MyModel.save() exists and I can access it. Is this a bug or am...

Sencha Touch: Enter key to submit form

javascript,extjs,javascript-events,sencha-touch,sencha-touch-2
I have a Sencha Touch code base and I wanted to be able to use the "Enter" key to submit the initial log in to the application instead of having to click the button on a desktop. Here is my Login view: Ext.define('App.view.Login', { extend: 'Ext.form.Panel', alias: 'widget.login', requires:[ 'Ext.form.FieldSet',...

Invalid session in Sencha Architect

javascript,extjs,sencha-touch,sencha-architect,sencha-cmd
I've been trying to create a new Sencha ID, but it always shows the error message They don't mention any thing over here, a simple message which doesn't show what kind of error we are doing there. Did anyone face this issue? Any solution for this.....

Set button text based on data attribute in Sencha Touch?

ios,sencha-touch,sencha-touch-2
I have an Ext.List that displays a collection of In-App purchases like a list of songs in the iOS iTunes app. Each item has a "buy" button justified on the right, which should show the price of the item stored in the Ext.data.Record. How can I set the text of...

Sencha touch 2 in a W8 application

cordova,extjs,windows-8,sencha-touch
I have an app developed under iOS and the behavior is correct but I am having a problem with my future implementation under Windows 8 in a tablet, for example messageBox pop-up size is different and I have the message incomplete, this is an example but I have more problems...

Phonegap android app in 3g or 2g connection index.html loading very slow

android,cordova,sencha-touch
On 3g and 2g connection we have very slow load of the page,and if there is an issue during the page load with a connection the page hung altogether. Without killing or in some cases re-installing the app, I wasn't able to get logged in. Whats confusing about this problem...

Is it possible to open new browser window with custom headers and content?

javascript,ios,http-headers,sencha-touch
I have a Sencha Touch web application. I'm trying to generate a calendar event file and open it in another window hence forcing iOS to ask user to import this event into standard calendar. I can do window.open and then use document.write to generate the file I want, but I...

Sencha Touch 2: panel won't scroll after app build

extjs,mobile,sencha-touch,sencha-cmd
I have a Sencha Touch app that is comprised of a tab bar layout with multiple pages, one of the pages is a list view and one is a "detail view" which is basically a panel. The panel won't scroll after I run "sencha app build". The resulting build package...

Sencha Touch : how to reference tab bar item from controller?

extjs,sencha-touch
My app consist of four pages in a tab bar layout. One page is a search form, and another is a data list of search results. I want to automatically change from the search form page to the list page when the search results are returned from the backend. I...

iOS9 ATS: what about HTML5 based apps?

cordova,https,sencha-touch,ios9
According to the documentation from https://developer.apple.com/library/prerelease/ios/releasenotes/General/WhatsNewIniOS/Articles/iOS9.html#//apple_ref/doc/uid/TP40016198-DontLinkElementID_13, Apple forces to use HTTPS over HTTP in iOS 9. App Transport Security App Transport Security (ATS) lets an app add a declaration to its Info.plist file that specifies the domains with which it needs secure communication. ATS prevents accidental disclosure, provides secure default...

Sencha touch lib not working on Chrome 43

android,webview,sencha-touch
I have built hybrid app with Sencha touch 2.3 and till recent it was working fine but i recently updated the Android System Webview via Play Store (i have moto g running android 5.0.1) and now i am encountering various bugs in UI as follows : The selectfield picker does...

Sencha/Extjs rest call with all parameters

json,rest,extjs,sencha-touch
I'm using ExtJs 5.1.1 and I've written a simple view with a grid, and selecting one row the corresponding model property are editable in some text fields. When editing is completed the button 'save' call Model.save() method, which use the rest proxy configured to write the changes on the server....

PHP: How to rename all keys of a Nested List (Array) to 'items'

php,arrays,algorithm,multidimensional-array,sencha-touch
I need to "reformat" some data coming from an external API so it works with the nested list module of Sencha touch. I cannot change the data output of that external API. Here's an example of the data I get from the API: $quest = array( 'gastronomy' => [ 'restaurants'...

Sencha touch 1 - Left Slide Menu

ios,cordova,sencha-touch
I am trying to do some enhancements on an existing app developed using sencha touch.The app was fully developed in Sencha Touch and the new change is to add a Left slide menu like in Facebook app.Is there any plugin developed for Sencha touch 1.I found a lot of plugins...

How could I dynamically choose a div class with an if-else statement?

javascript,extjs,sencha-touch
I use Ext.XTemplate to show my data in a list and I want to realize a function that when I get a positive number, it show as red and green when negative. To realize this function, I create two style and I want to pass parameters to dynamically create template...

(SOLVED) Using mouse wheel to scroll in Sencha Touch application on desktop

javascript,extjs,sencha-touch,sencha-touch-2
While looking for how to enable scrolling with the mouse wheel in Sencha Touch, I came across this answer. However, I am relatively new to Sencha Touch and the codebase I was given to maintain that uses it. The answer says to put it in the initialization block of my...

List won't display items in LocalStorage on launch

sencha-touch,sencha-touch-2,local-storage
Using Sencha Touch 2.4.1, I have a List that displays currencies, a FormPanel where the user can add new currencies. The store is "prepopulated" with two items, and they are displayed correctly in the List. When the user adds new items they are also displayed correctly in the List. But...

Sencha ExtJS: How do I prevent the cursor from leaving the current position in a phone number field upon edit?

extjs,sencha-touch,textfield,phone
Cursor automatically moves to the end of the phone number after 1 backspace move, it should remain in parentheses because the user could just want to edit the area code. (CODE AND IMAGES INCLUDED...scratch that, don't have 10 rep to post pictures, :/) Here is the code for the text...

Line Chart Series gets cut at top Sencha touch 2 charts

javascript,charts,sencha-touch,linechart
I am using line series in sencha chart. the issue is that markers with highest value in series gets cut at the top as shown in the image below. The blue line has a marker at value 1000 which gets cut at top in image. This issue is also present...

Inappbrowser doesn´t work in a Sencha Touch webapp

objective-c,cordova,sencha-touch
I am having problems with the inappbrowser cordova implementation, I have changed a thousand times depending of the post but continues without works. Here my configuration in the config.xml <plugins> <plugin name="InAppBrowser" value="CDVInAppBrowser" /> <plugin name="File" value="CDVFile" /> <plugin name="FileTransfer" value="CDVFileTransfer" /> </plugins> Here my JS configuration if(Ext.os.deviceType == "Tablet"...

Sencha Touch 2 How to get selected itemTpl in a list

javascript,extjs,sencha-touch
In Sencha Touch 2. How do I get the selected itemTpl in a list view? So far I have this code: xtype : 'list', store : myStore, id: 'list', itemTpl : "{num}", flex : 1, listeners : { itemsingletap : function(list, idx, target, record, evt) { var item = getItemTpl();...

How use google map API in hybrid app for mobile device

google-maps,dictionary,sencha-touch,hybrid-mobile-app
I want download java Script google map API V3 and load them in HTML file from local host instead use them from google API online link. Because when I'm load API from google server and my device is offline my app has error in use of google API method for...

Sencha Touch Error…“has no method 'getId'”

android,extjs,sencha-touch,sencha-cmd
I am getting this error, in my browser console, after running "sencha app run native testing": Uncaught TypeError: Object [object Object] has no method 'getId' When I look at the code in my browser I see this: When I look at my own code for itemId of "foo3" I have...

How to change the direction of writing depending of the country?

javascript,html,sencha-touch,lang
I am working with a major improvement in a website, currently the language is english but I need support for hebrew, I have modify all my text components and forms for this purpose. At the moment I have added the next line: <meta http-equiv="Content-Language" content="de, fr, it, en, he, iw"/>...

InAppBrowser under Windows 8 doesn´t work

cordova,windows-8,sencha-touch,inappbrowser
I am working in a Cordova project under different platforms, for example iOS and Windows 8 tablet, this app works has support in browsers like IE11 or Chrome, but I am having problems with the implementation with the InAppBrowser plugin, under W8 tablet doesn´t work and if you do "tap"...

Override Sencha Touch class

javascript,extjs,sencha-touch
I am working in a Sencha Touch application and I have the next doubt/issue with this code. Ext.each(records, function(record){ newItem = Ext.create('Ext.Panel', { material: record.get('material'), cls: 'setitems-item', tpl: '<div class="setitems-item-material">{material}</div>' + '<div class="setitems-item-atpstatus {atpstatus}">{cquantity}</div>' + '<div class="setitems-item-cdd">{[Cicero.Helper.formatSAPdate2Str(values.cdd)]}</div>' + '<div...

PrePopulate SQLite DB in Sencha Touch + Cordova project

sqlite,cordova,sencha-touch
I'm working on a Sencha Touch project and I'm in need to pack the app with a prepopulated DB. I'm using Cordova-SQLitePlugin (https://github.com/brodysoft/Cordova-SQLitePlugin) as a cordova plugin to use SQLite as a local DB and I've been looking around for ways of achieving my goal of prepopulating the DB but...

Loading binary image data to an image fails on Android 4.1 in Cordova Project

android,cordova,sencha-touch,blob,filereader
I have serious issues loading binary image data into a simple image-element. I coded a cordova app (using Sencha touch) which loads images the following way: xhr.open('GET', imageUrl, true); xhr.responseType = 'blob'; xhr.addEventListener('load', function () { if (xhr.status === 200) { // onload needed since Google Chrome doesn't support addEventListener...

Calling function when List Group Header Change in Sencha Touch

sencha-touch
I want to call a function when the group function is changed when we scroll in list. Thanks...

Sencha 2 Routing with Deft JS

mobile,sencha-touch,deftjs
Does sencha touch 2 routing works with Deft JS ? I am extending my controllers with Deft.mvc.ViewController instead of Ext.app.Controller and looks like routing is not working.

Remember selectfield sencha touch

javascript,extjs,sencha-touch,sencha-touch-2,sencha-touch-2.1
How to store the selectfield in sencha touch, such that when a field is selected, the value used by any method, but when the page refreshed, it is automatically select the previous selection. My Code: { xtype: 'fieldset', items: [{ xtype: 'selectfield', id: 'remem', label: 'MY Label', store: 'remem', options:...

sencha calendar error uncaught type error : Cannot read property 'indexOf' of undefined on page load

javascript,jquery,extjs,sencha-touch,sencha-architect
i am using sencha calendar for booking-sheduled when i load page it will give me an error uncaught type error : Cannot read property 'indexOf' of undefined if i clicked on console trace than it will redirect to ext-4.1.0.all console error Ext.String.urlAppendext-4.1.0.all.js:21 Ext.apply.urlAppendext-4.1.0.all.js:21 Ext.define.buildUrlext-4.1.0.all.js:21 Ext.define.buildRequestext-4.1.0.all.js:21 Ext.define.doRequestext-4.1.0.all.js:21 Ext.define.readext-4.1.0.all.js:21 Ext.define.loadext-4.1.0.all.js:21...