extjs

How to Generate a Custom JSON from TreePanel

让人想犯罪 __ 提交于 2019-12-12 05:18:48
问题 I am trying to generate the JSON from an editable treepanel. I am able to generate the JSON , but would like the JSON to have only certain fields . Here's how I generate the JSON by traversal. function getNodeList(bfsQueue) { var node = bfsQueue.pop(); var nodeQueue = []; for (var ii = 0; ii < node.childNodes.length; ii++) { bfsQueue.push( node.childNodes[ii] ); nodeQueue.push( node.childNodes[ii] ); } if (bfsQueue.length === 0) { return nodeQueue; } else { return nodeQueue.concat(

Unable to get values in POST php web serivce

旧巷老猫 提交于 2019-12-12 04:57:18
问题 I have made web service in php, which sends email to seller with information which is sent in parameters. If we are sending those information in GET, the web service works well. But if we send that information in POST, the web service (php script) shows nothing. Here is url of that web service : http://demo1.zenithtechnosol.net/carsGuide/contactSeller.php?seller_id=0&name=Anjum&email=abc@ccc.com&mobile=00923344239490&area=Dubai&message=This%20is%20test%20message. Currently i am just showing

Javascript Sencha cmd app build error occurred while executing this line

偶尔善良 提交于 2019-12-12 04:55:15
问题 I am trying to create a touch app using Cordova on a Mac. However when I run this code sencha app build native testing I get this error: Sencha Cmd v5.1.2.52 [INF] Processing Build Descriptor : native [INF] Loading app json manifest... [INF] Concatenating output to file /Users/h/Documents/Dev/testing/thisApp/build/temp/testing/thisApp/sencha-compiler/cmd-packages.js [INF] writing content to /Users/h/Documents/Dev/testing/thisApp/bootstrap.js [INF] appending content to /Users/h/Documents/Dev

Submit all of grid rows with Extjs form submit

余生长醉 提交于 2019-12-12 04:54:55
问题 I have a grid panel in a form. Any row of the grid panel have a filefield. I want to send any row (name field and filename field) to server. Model : Ext.define('FM.model.DefineCode', { extend: 'Ext.data.Model', fields: [ {name: 'id', type: 'int'}, {name: 'name', type: 'string'}, {name: 'filename', type: 'string'} ], validations: [ {type: 'presence', field: 'id'}, {type: 'presence', field: 'name'}, {type: 'presence', field: 'filename'} ] }); Store: Ext.define('FM.store.DefineCode', { extend:

Sencha CMD - Build Error: Mixed-Mode x-compile and microload markup is currently unsupported

无人久伴 提交于 2019-12-12 04:54:45
问题 Good day, I am trying to build my ExtJS 4.2 application and I am using Sencha Architect 3.1 and Sencha CMD 5.1.1.39 for the OSX. I was following this tutorial on how to build from the Terminal, and as expected, I got this error: com.sencha.exceptions.ExBuild: Mixed-Mode x-compile and microload markup is currently unsupported Upon googling, I came upon this thread from Sencha discussing how to get around this error. What I did next was to remove lines from my app.json file which originally

How to create shortcut keys in extjs

 ̄綄美尐妖づ 提交于 2019-12-12 04:53:40
问题 I write this code for submit on Enter { fieldLabel : 'Password', name : 'j_password', inputType : 'password', allowBlank : false, listeners : { 'render' : function(cmp) { cmp.getEl().on('keypress', function(e) { if (e.getKey() == e.ENTER) { submitform(); } }); } } } What change do I need to do for shortcut keys Like Save(Ctrl + S) , Paste(Ctrl +P) , Open (Ctrl + O) , Exit(Ctrl +X) ? 回答1: You need to write appropriate handler to do the job using KeyMap. Ext 4 code snippet may be as follows -

Buttons in a same row

蓝咒 提交于 2019-12-12 04:47:53
问题 Here my code in sencha touch, i tried to add 2 button horizontaly, Means one to other.No,luck its keep on coming one in upper side and the other one lower. var profilese = { standardSubmit : false, items: [tab,{ xtype: 'button', text: 'ADD', ui: 'confirm', handler: function() { view.setActiveItem(2, {type:'fade', direction:'right'}); } },{ xtype: 'DELETE', text: 'Search Friends', ui: 'Search', handler: function() { view.setActiveItem(3, {type:'fade', direction:'right'}); } }] }; How to set

ExtJS floating window focus lose detection

随声附和 提交于 2019-12-12 04:45:38
问题 I am wondering whether there is an efficient way to detect whether a floating window loses focus or not. I have a floating window for user's temporary inputs, what I want to do is automatically hiding this window if user forgot to hide it after input operation (e.g., clicks at elsewhere). I tried to use blur event on window's element, but nothing happened. a working demo: demo thanks for any idea! 回答1: This can be achieved adding blur event to ext window element, below is the sample code Ext

ExtJS combo box disabled properties not functioning

被刻印的时光 ゝ 提交于 2019-12-12 04:44:53
问题 I attempted to disable the combo box component with the disabled attribute however it's not working. The code is below: xtype: 'bkl.exchange.ExchangeRFCombo', disabled: true, fieldLabel: 'Exchange', id: 'exchMapee', valueField: 'omsMappingCode', editable: false The mode is remote and not local. So the values displayed by the combo box is from the database. Is there a solution to this problem? Your help is kindly appreciated. Thank You. 回答1: You can add this to the combo box: listeners: {

What ExtJS 4.2 standard function gets executed for grid selection when using Ext.selection.RowModel (default) selModel?

杀马特。学长 韩版系。学妹 提交于 2019-12-12 04:44:44
问题 There is a bug with the way the Ext.grid.Panel rowexpander plugin works when a nested grid is set to renderTo to the rowexpander div id. When this is implemented, it's difficult to see what is actually being selected. The reason for this is because the config "disableSelection" and "trackMouseOver" are to be both considered for highlighting. I have to set "trackMouseOver: false" so that hovering over grid rows doesn't interfere with reproducing this behavior. Then "disableSelection: false"