extjs6

rowedit grid with sync

落爺英雄遲暮 提交于 2019-12-24 10:14:01
问题 I try to implement a general rowediting grid like this example, with the difference that I would like to sync the changes with the server backend. Until now, I can add a new line with onRoweditAdd . Ext.define('Mb.view.base.RoweditListController', { extend: 'Ext.app.ViewController', alias: 'controller.roweditlist', onRoweditAdd: function(me){ var grid = me.up('panel'), edit = grid.editingPlugin, store = grid.getStore(), record = store.getModel().create({id: 0}); edit.cancelEdit() store.insert

Deploy same Javascript webapp build to different environments

荒凉一梦 提交于 2019-12-24 04:14:09
问题 I have an ExtJS application and some different environments (local machine, development, production-like test environment, and production). The ExtJS application is backed by a Java backend which is also running on either a local machine, in a development environment, a production-like test environment or a production environment (not the same servers as where the front end application lives though). For the last two environments, I want to build ONE build of the ExtJS app and first deploy it

Why doesn't a store declared in a ViewModel get loaded?

不问归期 提交于 2019-12-24 03:42:34
问题 This question is related to Trying to bind a store to a ViewModel, but is a different question. I'm declaring a store in a viewmodel like this: Ext.define('Mb.view.rma.DetailsModel', { extend: 'Ext.app.ViewModel', alias: 'viewmodel.rma-details', requires: ['Mb.model.rma.Detail'], data: { id: 0 }, stores:{ details: { //store: 'rma.Details', type: 'rmaDetails', // correction as suggested by @scebotari filters: [{ property: 'rma', value: '{id}' }], remoteFilter: true } } }); When I instantiate

Why doesn't a store declared in a ViewModel get loaded?

余生长醉 提交于 2019-12-24 03:42:22
问题 This question is related to Trying to bind a store to a ViewModel, but is a different question. I'm declaring a store in a viewmodel like this: Ext.define('Mb.view.rma.DetailsModel', { extend: 'Ext.app.ViewModel', alias: 'viewmodel.rma-details', requires: ['Mb.model.rma.Detail'], data: { id: 0 }, stores:{ details: { //store: 'rma.Details', type: 'rmaDetails', // correction as suggested by @scebotari filters: [{ property: 'rma', value: '{id}' }], remoteFilter: true } } }); When I instantiate

Unable to render data into grid column using JSON results

两盒软妹~` 提交于 2019-12-22 06:32:05
问题 I have a grid store with something like this. var gridStore = Ext.create('Ext.data.Store',{ proxy : { type : 'ajax', actionMethods : { read : 'POST' }, url : 'getECIAgentWrapperJobs.do', reader : { type : 'json', rootProperty : 'rows', totalProperty : 'results' } }, pageSize : 3, autoLoad : {start: 0, limit: 3} }); Clearly it makes an AJAX request to the url. The JSON response that I am getting for this store looks something like this : { "results":2, "rows":[ { "pkTable1":1, "name":"Rick",

How can I create several ExtJs apps without duplicating the Framework

狂风中的少年 提交于 2019-12-21 23:16:37
问题 I'm developing some Extjs 6 applications. I'm using Sench Cmd 6 for creating new application. For every project, It creates a new copy of my lilbrary files. I want to re use the library files rather than duplicate them. | -- library files | -- Project 1 | -- Project 2 | -- etc. How can I do it ? 回答1: You need to create first a workspace . Then any app as you want. Would be something like sencha -sdk "/Sencha/ext-6.0.0" generate workspace "/dev/workspace/" sencha -sdk "/Sencha/ext-6.0.0"

How to load grid data with json data on ajax sucess

梦想的初衷 提交于 2019-12-20 06:28:13
问题 In my ajax sucess i am calling this funcction and there from response I am extracting the data which I need to load. success: function(response){ StoreloadData(this,response); }, In StoreloadData function i am trying to load data in my grid like this but not getting data. StoreloadData(me,response){ var myGrid = Ext.getCmp('#myGrid'); var myGridStore = myGrid.getStore(); var gridData = response.myData.data; var total = gridData[0].recordsCount; myGridStore.load(gridData); // Not loading

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 6 - pivot without CMD

半腔热情 提交于 2019-12-13 14:16:19
问题 I would like to evaluate the features of pivot grid using simple test html without cmd. I've read the information from those links but I still couldn't install a working environment https://docs.sencha.com/extjs/6.0/co...ivot_grid.html https://www.sencha.com/forum/showthr...out-Sencha-Cmd http://se.sencha.com/setup-guide/ I've downloaded the core framework ('ext-6.0.1-trial.zip') and pivot addon ('ext-addons-6.0.1-trial.zip') from sencha site and unpacked them on my test web server: www

Chained combobox shows valuefield instead of displayfield when changing parent cb

≯℡__Kan透↙ 提交于 2019-12-12 05:41:56
问题 How to reset chained combobox in my example the extjs way? Consider this two comboboxes: { xtype: 'combo', bind:{ store: '{contacts}' }, reference: 'contactsCombo', displayField: 'name', name: 'contact', typeAhead: false, editable: false, fieldLabel: 'Contact', emptyText: 'Select a contact...', anchor: '95%', listeners: { change: 'onSelectChange' }, }, { xtype: 'combo', name: 'phone', reference: 'phonesCombo', fieldLabel: 'Phone', displayField: 'number', valueField:'id', hiddenName: 'id',