extjs

how to retrieve xml from a remote server in SenCha Touch

纵然是瞬间 提交于 2019-12-13 21:00:26
问题 Update: Hi, I do not think my question is same as the mentioned question, there are 2 reasons: that question is asking about how to overcome the CORS problem and we all know that from a website, you cannot retrieve data from another website(B) which has different domain unless B has specifically configured its website to allow other to access its data. But in my case, the Cordova/SenCha Touch generated app doesn't have the http protocol when requesting, so it's not the same problem. I want to

JUnit test: null pointer exception

百般思念 提交于 2019-12-13 20:51:57
问题 I am using Spring with EXT JS and hibernate to populate a EXT JS form on a webpage using tomcat... I have the table populating using a method that accesses the database and returns my HQL statement Now i am trying to execute a simple JUnit test to count the number of records returned but when i am calling the method in the JUint test that populates the EXT JS form, it returns this excception... I dont know why JUnit Test class package com.fexco.helloworld.web; import static org.junit.Assert

ExtJS find events handlers registered with an object

风流意气都作罢 提交于 2019-12-13 19:44:06
问题 I would like to find which event handlers are registered over an object (in my concrete case it's the pagetree in the TYPO3 CMS backend). Is there a method to get all event handlers ? 回答1: You can simply walk through its events property. Most of the members will be just true , but those actually representing attached events will be objects. Type something like: var es = Ext.getCmp('my-tree-id').events; for (var k in es) { if (Ext.isObject(es[k])) { console.log(es[k]); } } If your object is a

Extjs 4 remote filter store smaller (<) bigger (>) than

非 Y 不嫁゛ 提交于 2019-12-13 19:40:26
问题 Is it possible to remote filter smaller than and bigger than? I know how to handle this in php and mysql but I don't know how to set such a filter in a extjs 4 store. 回答1: Out of the box with 4.1, no. You will need to overwrite the responsible provider proxy for that cause currently only property-value pairs get submitted (responsible function). The other point is that the Ext.util.Filter don't support any comparator for remotesort at all. So you have to implement your own and ensure that the

ExtJS 5 - Download file from POST servlet request

北战南征 提交于 2019-12-13 19:22:51
问题 I have trying to implement the export functionality in ExtJS 5 using form submit method. And I had look at the following stackoverflow link, it helps but not fully. Extjs 4 (with a code for 3.4 below) downloading a file returned from a post request In my case i facing an issue after the request response is successful, getting invalid JSON encoding error.Even i tried to change the reader from JSON reader to some other string reader(mentioned in link), but it is quite successful for some reason

Functional Test With ExtJS 6

元气小坏坏 提交于 2019-12-13 19:13:33
问题 I'm using HP UFT for functional tests. Because of dynamic id definition of ExtJS, I can't use UFT Recording feature. I've tried many ways for assigning dynamic IDs to staticly. I tried to change id: function() in ext-all-debug.js file. I tried to change Components getId() function in ext-all-debug.js file. I tried override components with afterRender method to change ids aswell. Sometimes I achieved to change id's using component's properties (text, fieldLabel, overflowText, etc.), but for

ExtJS Dynamically setting tab index

大城市里の小女人 提交于 2019-12-13 19:03:57
问题 How can I dynamically set a tab index in ExtJS? I can't see anything in the docs for it, only a config option for it. If I try to do an .apply, it still doesn't work. I know I can probably extend the framework to support this since it is just a DOM element, but I'm sure I'm missing something simpler. Help? 回答1: It seems that in the extjs code for field they do this: this.el.dom.setAttribute('tabIndex', this.tabIndex); 回答2: you can use the set method of the Element class which you can retrieve

Accept application/pdf in Ext.Ajax.request

馋奶兔 提交于 2019-12-13 18:59:15
问题 I am using Ext.Ajax.request() to make an API call which produces MediaType.MULTIPART_FORM_DATA . This is being handled in the php layer which returns the object in header("Content-Type: application/pdf"); echo $response; The problem is, I am not able to handle the received object in the Ext.Ajax.request() since it always handles only Json objects by default. I tried giving Headers , AcceptType in the request, but it always goes to the failure block. Here is the code: Ext.Ajax

Horizontally Scrollable Grid in ExtJS 3.3

天涯浪子 提交于 2019-12-13 18:45:07
问题 I'm new to ExtJS and am having hard time accommodating a large number of columns in a 600px wide Ext.grid.EditorGridPanel (see example below). Scrolling all grid columns together or something similar to the second grid shown in this example (Ext 4) would do it. var grid = new Ext.grid.EditorGridPanel( this.getGridConfig('', ['a', 'b', 'c', '...', 'x', 'y', 'z'], [ { dataIndex: 'a', header: 'A', editor: new Ext.form.TextField({width: 200, allowEmpty: false}) }, { dataIndex: 'b', header: 'B',

Error '.xls' is in a different format than specified by the file extension

ε祈祈猫儿з 提交于 2019-12-13 18:27:43
问题 I found a plugin that helps me export ExtJS grid data into MS Excel sheet. http://druckit.wordpress.com/2013/10/26/generate-an-excel-file-from-an-ext-js-4-grid/ all works great except for the error I'm getting before opening the file. Peace of my code: if (Ext.isChrome || Ext.isGecko) { // local download var gridEl = this.getEl(); var el = Ext.DomHelper.append(gridEl, { tag: "a", download: title + "-" + Ext.Date.format(new Date(), 'Y-m-d') + '.xls', href: location }); el.click(); Ext.fly(el)