Page 58 of 60 FirstFirst ... 8485657585960 LastLast
Results 571 to 580 of 591

Thread: Grid RecordForm Plugin

  1. #571
    Sencha User
    Join Date
    May 2008
    Posts
    23
    Vote Rating
    0
      0  

    Default

    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
    Thanks for such a useful plugin, it's a big timesaver when I just want a simple editor of a simple record.

  2. #572
    Sencha User
    Join Date
    Dec 2010
    Posts
    12
    Vote Rating
    0
      0  

    Default

    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??

  3. #573
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,664
    Vote Rating
    406
      0  

    Default

    Check your server response, possibly on http://jsonlint.com/, to see if the server response is valid.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid MultiSearch Plugin, Grid MultiSort Plugin, Configuring ViewModel Hierarchy


  4. #574
    Sencha User
    Join Date
    Dec 2010
    Posts
    12
    Vote Rating
    0
      0  

    Default

    hmm...thanks for your response.i'll try and report it later.be success...

  5. #575
    Sencha User
    Join Date
    Dec 2010
    Posts
    12
    Vote Rating
    0
      0  

    Default

    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....

  6. #576
    Sencha User
    Join Date
    Dec 2010
    Posts
    12
    Vote Rating
    0
      0  

    Default

    hmmm problem solved..in mysql not begin transaction but using start transaction for update data..thank's for this thread and thread starter

  7. #577
    Sencha User
    Join Date
    Dec 2010
    Posts
    12
    Vote Rating
    0
      0  

    Default

    --- edited ---

  8. #578
    Ext User
    Join Date
    Aug 2010
    Posts
    2
    Vote Rating
    0
      0  

    Default

    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?

  9. #579
    Sencha User
    Join Date
    May 2008
    Posts
    23
    Vote Rating
    0
      0  

    Default

    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.

  10. #580
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,664
    Vote Rating
    406
      0  

    Default

    I do not recommend to set an id, use form.findField('field-name') instead.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid MultiSearch Plugin, Grid MultiSort Plugin, Configuring ViewModel Hierarchy


Page 58 of 60 FirstFirst ... 8485657585960 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •