extjs4

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

How to set an extjs grid record phantom to true

谁说胖子不能爱 提交于 2019-12-11 13:12:10
问题 In Ext 4.1, I am dropping items to a grid, but the records come in with an id and the phantom flag is set to false, causing the store to remain empty and not add those records to it. even though they appear fine on the grid. I read several solutions online, and many suggested setting the phantom flag to false and/or setting the id to null, but I am not able to implement this? Where do I set it? Here are related links: http://www.sencha.com/forum/showthread.php?261174-Store-is-not-syncing

Howto override listener in gridpanel on ExtJS4

六月ゝ 毕业季﹏ 提交于 2019-12-11 13:11:29
问题 Hii howto override itemclick in gridpanel on ExtJS4 ? I have gridpanel with alias tableA like this : Ext.define('AM.test.TableA', { extend: 'Ext.grid.Panel', alias: 'widget.tableA', initComponent: function() { // tableA configurations this.callParent(arguments); } }); And my tableA controller like this : Ext.define('AM.test.TableAController', { extend: 'Ext.app.Controller', init: function() { this.control({ 'tableA': { itemclick: this.tableSelection } }); }, tableSelection: function(grid,

Select a value from a variable

和自甴很熟 提交于 2019-12-11 13:04:51
问题 In Extjs, I am trying to select a value accrued from a variable Store . I tried: var newStore = Store.data.items[0].data.accrued; The above one is not working. I am getting error: Uncaught TypeError: Cannot read property 'data' of undefined Whenever I add items[0] , it is making the variable undefined. When I checked: var newStore = Store.data.items.length; output is: 0 //? But I can see that there are items in Store variable here as shown in the above image. Anyway, I just want to get the

ExtJs4 Problem in BoxSelect(Multiselect combobox)

你。 提交于 2019-12-11 13:02:38
问题 I downloaded the code given in http://www.sencha.com/forum/showthread.php?134751-Ext.ux.form.field.BoxSelect-Intuitive-Multi-Select-ComboBox but its not working properly as I try to enter another item by typing. As it gives me error shown below. ext.fly(node) is null.. Plzz help me into this 来源: https://stackoverflow.com/questions/6491175/extjs4-problem-in-boxselectmultiselect-combobox

Is this an reasonable use case for storing JSON in MySQL?

若如初见. 提交于 2019-12-11 11:36:19
问题 I understand that it is generally considered a "bad idea" to store JSON in a MySQL column due to the fact that it becomes difficult to maintain and is not easily searched, or otherwise queried. However, I feel that the scenario I have encountered in my application is a reasonable use case for storing JSON data in my MySQL table. I am indeed looking for an answer, particularly one that may point out any difficulties which I may have overlooked, or if there is any good reason to avoid what I

Extjs4 combobox set value field and display fileld

你。 提交于 2019-12-11 11:32:37
问题 I'm using Extjs4. I've to set combobox display field and value field in form load. setValue() not working for comboxes in form load. I'm using bellow code Please let me know whats wrong with my code. quiz_edit_form.load({ url: BASE_URL + 'courses/testing/getCourseTest/' + quiz_id, method: 'POST', success: function(form, action){ var chap_name = action.result.data.test_chapter_combo; var less_name = action.result.data.test_lesson_combo; Ext.getCmp('test_chapter_combo1').setValue(chap_name);

What component event should CSS classes be removed in Sencha ExtJS framework? (annoying red line)

喜夏-厌秋 提交于 2019-12-11 11:18:57
问题 This annoying red line shows up randomly when resizing this component using it's split bar (top edge of component). I did figure out how to remove the red line permanently by removing its CSS class, but there's a catch 22. I'm having a difficult time removing a CSS class in the Sencha ExtJS framework for this Activity1 component. I have a styling issue where the backgroundColor style attribute shows a red line for a very specific layout of containers within that component. The red color is

Extjs Grid panel - Hide a column with hideable=false

只愿长相守 提交于 2019-12-11 11:14:17
问题 i'm using Extjs 4.1 grid panel. i'm looking for a way to hide a column from the grid. i can use setHidden but then the user can "unhide" the column again from the menu in the column header. it seems that the hideable propery just doesnt cut it... 回答1: Ok. Eventually i did this: in the grid's "afterrender" event: var header = pnl.down("headercontainer"); if(header != null && header["getMenu"] != null) { var menu=header.getMenu(); menu.on('beforeshow',function(sender,eOpts){ var menu=sender; if

Extjs 4 Session Management

我只是一个虾纸丫 提交于 2019-12-11 10:56:26
问题 I am having web based application in which user session has to be managed management. In app.js I have used launch config as : launch: function(){ Ext.create('myproject.view.LoginForm') } LoginForm : will show log in dialog and invoke login controller for communicating with server for authenticating the credentials provided by the user. So when ever user refreshes the page Extjs is asking for log in that is because of I am not checking the session in here, How should be the session details