extjs

ExtJS+django form submit success/failure issue

随声附和 提交于 2019-12-11 02:50:32
问题 I have a problem when dealing with the callback of a form submit, the code in client side is: [...] buttons: [{ text: 'submit', formBind: true, handler: function(){ formPanel.getForm().submit({ url: this.actionUrl, waitMsg: TR['formdialog.messages.saving'], success: function(form, action) { this.close(); }, failure: function(form, action) { if(action.failureType == Ext.form.Action.CLIENT_INVALID) { Ext.Msg.alert('Failure', 'Client invalid'); }else if(action.failureType == Ext.form.Action

sencha touch Sync store Performance issue

谁都会走 提交于 2019-12-11 02:49:32
问题 I am developing application using sencha touch 2. I have one problem using store.sync() its taking too much (about 20 min) time while execution this statement. I have to insert 8500 records into store. Is there any alternative way so that downloading gets done faster. var spareStore = Ext.getStore('Spares'); spareStore.removeAll(); spareStore.add(spareList); spareStore.sync(); spareStore.load(); var spareData = [] spareStore.each(function(rec){ spareData.push(rec.data); }); 回答1: You are

Paging toolbar on custom component querying local data store

a 夏天 提交于 2019-12-11 02:49:02
问题 I have a few questions regarding paging a Ext Store. The Store will pull an amount of historical data on page load. If the number of records is greater than 10 then I need to implement paging on a custom component/view. The view will be generated with Ext.view.View and a XTemplate. I would like to know if i can use the paging toolbar on a custom component and if i can query a Store where all the data is held locally. Therefore, not passing parameters to the server and pulling new data back

get vs select vs query for accessing elements with ext js framework

放肆的年华 提交于 2019-12-11 02:45:43
问题 I am wondering why 'get' or 'select' methods are used in ext js when the dom query method 'query' seems to find everything get and select can find and more. 'get' for example finds elements by id, select finds elements by id, class, css selectors and query does everything. Why use get or select for anything when query can do it? 回答1: The main differences... Ext.select This allows you to use a CSS selector to get a collection of Ext elements in the form of a CompositeElement , allowing you to

PL/SQL Convert String To Boolean

时光怂恿深爱的人放手 提交于 2019-12-11 02:38:33
问题 I have an EXT JS page which sends a form with some values. The values are all sent in string and some sent as boolean. It is calling a PL/SQL procedure where the params are all varchar. For some reason when the form is submitted, even though some values are sent as boolean, they can not be received by the procedure as boolean. All the values received from the procedure are varchar; and must be otherwise it crashes. So I am sending a boolean from the form to the procedure. When it gets to the

Not able to show image on dialog box in AEM

纵饮孤独 提交于 2019-12-11 02:35:59
问题 I am trying to create a dialog with image preview on it. I am able to create dialog with all the fields but i am facing issue with image. I have seen the image component where you can drag drop image but i need the image to be shown when i open dialog component. Is there any component for this without drag drop. I have tried with html5smartimage image but not working. Please see code below: <?xml version="1.0" encoding="UTF-8"?> <jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr=

extjs button scope

大憨熊 提交于 2019-12-11 02:28:50
问题 I am trying to understand scope in the below scenario. When calling searchTerms , this under the scope:this refers to the searchTerms function rather than the panel itself. It seems to be different from what I observe from other examples. May I know what mistakes did i make? function searchTerms(){ var searchGrid = new Ext.grid.GridPanel({ }); var searchPanel = new Ext.form.FormPanel({ region: 'south', height:150, items:[ { xtype: 'textfield', fieldLabel: 'Keywords', },{ xtype: 'textfield',

On change event Ext.form.DateField

放肆的年华 提交于 2019-12-11 02:26:08
问题 I have a Ext.form.DateField: new Ext.form.DateField({ id: 'date_from', format: 'd/m/Y', editable: false, listeners: { change: function (t,n,o) { console.log('dsd'); } } }) However unfortunately the change event does not seem to be executed. I have also tried: new Ext.form.DateField({ id: 'date_from', format: 'd/m/Y', editable: false, change: function (t,n,o) { console.log('dsd'); } }) However also to no avail. Any advice appreciated. Thanks 回答1: The change event only fires on blur. If you are

how to save Extjs4 chart image to print in a pdf report?

时光总嘲笑我的痴心妄想 提交于 2019-12-11 02:18:09
问题 i have several charts in my extjs4application dashboard.. i want to generate a pdf report using the images of those charts for that i use iTextSharp is there a way to get the images from the charts in order to include them in my report? the ideal for me is to use it like this with itextsharp MyImageStream = new MemoryStream(); myChart.SaveImage(MyImageStream); my chart would be the chart object i asked around in the forums they told me i would generate and render my chart at client (already

error when creating android app with sencha

﹥>﹥吖頭↗ 提交于 2019-12-11 02:15:58
问题 Using touch 2.2.1 and Cmd 3.1.2.342 I am trying to create an .apk file using the following command line: sencha build native I have also tried sencha build native app and sencha android native build as well as sencha app build native Unfortunately it is failing and returning this code [ERR] null at com.sencha.util.Version.<init>(Version.java:36) at com.sencha.tools.pkg.Model$Package.<init>(Model.java:640) at com.sencha.tools.pkg.Model$Package.load(Model.java:627) at com.sencha.command