-
If using ExtJS 3.3.0, and LovCombo, then you will need to make the following modification to Ext.ux.grid.RecordForm.js:
On line 300, replace this:
Code:
// use cm editor if we have one
if(c && c.editor && c.editor.field) {
With this:
Code:
// use cm editor if we have one
if(c && c.editor ) {
c.editor.field = c.editor;
Worked for me B)
Thanks for such a useful plugin, it's a big timesaver when I just want a simple editor of a simple record.
-
hy j sakalos....thanks for your plugin.now, i use with mysql for database, data can display but edit or save button not work because error: cannot decode JSON object.i guess problem in line json_decode on Ext.decode(response.responseText)..any suggest for it, i use ExtJS Ver 3.3??
-
Check your server response, possibly on http://jsonlint.com/, to see if the server response is valid.
-
hmm...thanks for your response.i'll try and report it later.be success...
-
my server is valid response..save or edit still error, in sqlite json_decode is work, but in mysql it's not work..can you give me specified solution for this issue??thank you jsakalos....
-
hmmm problem solved..in mysql not begin transaction but using start transaction for update data..thank's for this thread and thread starter
-
-
Hi everybody, I'm using this component and I want to set a value obtained of a combo into a textField of the recordForm but I can' do it. I have tried this:
var obj1 = Ext.getCmp('textField1');
obj1.setValue(1);
Error: obj1 is undefined
Help please. How can I access to the Fields of the recordForm?
-
You need to give your textfield an id.
So your code might look like this:
Code:
new Ext.form.TextField({
width: '82%',
id: 'textField1',
name: 'textField1',
fieldLabel: 'Text Field',
triggerAction: 'all',
allowBlank: true
})
Without the explicit id set in code, Ext gives it a weird Ext-cmp-blah ID, so you will get the undefined error.
-
I do not recommend to set an id, use form.findField('field-name') instead.