extjs

Load date from store to combobox

£可爱£侵袭症+ 提交于 2019-12-11 15:04:25
问题 Hello i am get from server date to store with "url: /book/price" . And this response comes from the server { status: "SUCCESS", msg: "операция завершена успешно", data: [ "500", "600" ] } This information from "data" I want to insert in combobox. I am create store, but don't know what write there: this store: Ext.define('TPL.store.price.Book', { extend: 'Ext.data.BaseStore', autoLoad: true, proxy: { type: 'ajax', url: '/book/price', reader: { type: 'json', root: 'data', successProperty:

extjs store proxy api throws error does not recognize url when passing it as a variable

三世轮回 提交于 2019-12-11 14:56:17
问题 I have a store which fetches data from rest api. Turns up that if I try to pass the url as a variable it throws me the following error: [E] Ext.data.proxy.Server.buildUrl(): You are using a ServerProxy but have not supplied it with a url. Here is the code: Ext.define('mystore', { extend: 'Ext.data.Store', alias: 'store.mystore', model: 'mymodel', restful: true, autoLoad: true, proxy: { type: 'ajax', headers: { 'Accept': '*/*', 'Cache-Control': 'no-cache', 'Content-Type': 'application/json',

Reduce the height of a titlebar - Sencha

人走茶凉 提交于 2019-12-11 14:49:12
问题 I have a container with a few different items stacked in. I also would like to have two title bars inside the container BUT with height reduced to 10 points. I have tried to reduce the size using setHeight() with a lesser number but I can't seem to achieve that. Am I missing something obvious? Is there a way I can reduce the height of a toolbar/titlebar in Sencha Touch? Help! UPDATE: Here is the code I use for a toolbar... Ext.define('MyApp.view.CookingSteps', { extend: 'Ext.Container', alias

ExtJS - Remote filtering causes problems

本秂侑毒 提交于 2019-12-11 14:43:46
问题 a) Here's a JS fiddle to help show what's happening: http://jsfiddle.net/CKpPW/ b) To replicate the issue, select the first drop down and notice how the full name appears. Then expand the second drop down and notice how the display of the first drop down goes away. My assumption is that this happens because both comboboxes use the same store so when a filter is applied to the store it applies to everything, and thus when that record no longer exists it defaults back to whatever the value is.

Grouping in store with values in extjs 6.2

帅比萌擦擦* 提交于 2019-12-11 14:42:32
问题 I am trying to group my store on department name . Department name contains some null values also . when i am trying grouping along with sort function its result in multiple group from same name. see this fiddel for details. I am not getting what i am doing wrong. Kindly advise. 回答1: Your sorterFn is wrong. The sorterFn has to return three different values: 1 if the second argument is strictly greater than the first. -1 if the second argument is strictly smaller than the first. 0 if both

Get row from a nested grid

僤鯓⒐⒋嵵緔 提交于 2019-12-11 14:26:41
问题 i have a grid nested, i want to get the row inside one of them but i cant. This is the gridpanel code: Ext.create('Ext.grid.Panel', { renderTo: 'amenazas-grid', store: amenazaStore, width: 748, height: 598, title: '<bean:write name="informesAGRForm" property="nombreActivo"/>', plugins: [{ expandOnDblClick: false, ptype: "subtable", pluginId: 'subtable', headerWidth: 24, columns: [{ text: 'id_amenaza', dataIndex: 'id_amenaza', hidden: true, width: 100 }, { width: 100, text: 'id_salvaguarda',

How to access the ID of a collapseTool in a grid?

会有一股神秘感。 提交于 2019-12-11 14:26:14
问题 I'm trying to access the ID of the collapseTool in a grid, but I'm not having any luck. Here's a pic of my console when I simply console out the grid. console.log(grid); and I would like to get the Id tool-1782 I've tried: console.log(grid.collapseTool) but it prints undefined I'm working with an accordion that has grids inside of it, and I would like to get the id of each collapse button. Example: 1) Id of first button: tool-1782 2) Id of second button: tool-1783 3) Id of third button: tool

ExtJS 4 problems with form updating a new created record in a store - loadRecord updateRecord

蓝咒 提交于 2019-12-11 14:14:27
问题 I have problems with a form saving to a store. The form loads a record for editing a existing record, or is blank for a new record. Editing a existing record works fine. Creating a new one works fine as well. I get problems if I want to edit & update a newly created record without closing and re-opening the form. I guess the problem is that the id of the record inside the store is assigned through the remote server. The form is holding a copy of the model and is not taking any notice of the

ExtJS - Grid panel not loaded with nested JSON

我们两清 提交于 2019-12-11 14:08:56
问题 Hello my JSON is: (formatted for better reading) {"status":{"status":0,"msg":"Ok","protocolversion":"extjs.json"}, "list":[{"getLogfiles":[ {"key":"0","value":"...lugin\/monitor\/files\/x_worker_error.log"}, {"key":"1","value":"...les\/x-worker01-progress.log.1331769600"}, {"key":"2","value":"...\/application\/x\/plugin\/monitor\/files\/Test.log"}, {"key":"3","value":"...ind\/plugin\/monitor\/files\/logfile_for_navi_test.log"}, {"key":"4","value":"...lugin\/monitor\/files\/logfilefilter

ExtJS: Override all AJAX calls in production build

允我心安 提交于 2019-12-11 14:06:26
问题 What I'm trying to do is override all AJAX requests, including AJAX proxies, so what I created was an override for Ext.data.Connection. In development mode, this works like a charm, but in a production build, things get a little weird. The reason why things get weird is because we're doing something that "splits" the build (link here). Meaning, we put all of the framework code into its own file, then have "app.js," which is essentially what we use for booting our application, and "viewport.js