1. #561
    Ext User
    Join Date
    Jun 2008
    Posts
    2
    Vote Rating
    0
    towanime is on a distinguished road

      0  

    Default


    Hi, excellent plugin but I've found a weird issue when I try to change one of the properties of a textfield (allowBlank etc) or execute a method (setValue, isValid etc) I don't get the usual behavior. For example I use setValue from a blur event of another field, code:

    These fields are create before the column model and then they are assigned to they columns as editors...
    Code:
     
          var txtCalle = new Ext.form.TextField({
                            allowBlank: false
                          , inputType: 'text'
                          , listeners:{
                            blur: function ( textField ){
                                    txtAvenida.allowBlank = true;
                                    txtAvenida.validate();
                            }
                          }
                     });
    
          var txtAvenida = new Ext.form.TextField({
                            allowBlank: false
                          , inputType: 'text'
                          , listeners:{
                            blur: function ( textField ){
                                    txtCalle.allowBlank = true;
                                    txtCalle.validate();
                            }
                          }
                     });
    The same happens with other validations that i need to check and I do either on blur or select... If I use setValue and print the object using firebug, the object seems to have the new value but it keeps showing the old value.

    Somehow the items are not re-rendering as they should or something I don't get to see is happening. i'm using vr 2.3.0.

    Please any help you can give me is appreciated.

  2. #562
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,520
    Vote Rating
    375
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    i don't want to load the store with all the fields initially
    The reason why i don't want to load all fields in store is because the time taken is more to load the all record
    ... no chance then.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  3. #563
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,520
    Vote Rating
    375
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    @towanime, RF is simple, quick editor for a store record. If you need a special behavior it is not for you. Also, I have no idea where you put fields you create in the code above. The thing is that RF doesn't accept any external fields but it creates its own on the basis of store and column model configuration.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  4. #564
    Sencha User
    Join Date
    Oct 2010
    Posts
    6
    Vote Rating
    0
    nasargus is on a distinguished road

      0  

    Question Combo editor with lazy arrayStore does not work

    Combo editor with lazy arrayStore does not work


    Hello all, this is great plugin, tx for it ! I just have one issue with column with arraystore combobox editor and lazy loading.

    all is ok when I define the editor store using "new" keyword like that:

    PHP Code:
    {
        
    header'Industry',
        
    dataIndex'industry',
        
    width75,
        
    sortabletrue,
        
    mode'local',
        
    editor: {
            
    xtype'combo',
            
    store: new Ext.data.ArrayStore({
                
    id0,
                
    fields: ['id''industry'],
                
    data: [
                    [
    '1''Automotive'],
                    [
    '2''Computer']
                ]
            }),
            
    displayField'industry',
            
    valueField'id',
            
    triggerAction'all',
            
    mode'local',
            
    editablefalse,
            
    lazyRendertrue,
            
    forceSelectiontrue
        

    but when I use the "lazy - xtype" option for the store, the combobox is renderred, but no options are avaiable to choose:
    PHP Code:
    {
        
    header'Industry',
        
    dataIndex'industry',
        
    width75,
        
    sortabletrue,
        
    mode'local',
        
    editor: {
            
    xtype'combo',
            
    store: {
                
    id0,
                
    xtype'arraystore',
                
    fields: ['id''industry'],
                
    data: [
                    [
    '1''Automotive'],
                    [
    '2''Computer']
                ]
            },
            
    displayField'industry',
            
    valueField'id',
            
    triggerAction'all',
            
    mode'local',
            
    editablefalse,
            
    lazyRendertrue,
            
    forceSelectiontrue
        

    I don't know where to start and what to check to resolve it, do you guys have any idea ? I need to use the lazy because this config for column is dynamic and comes in json from backend ( and I do not want to rewrite the parser to proceed editor with "new" )

    regards
    Vladimir

  5. #565
    Sencha User
    Join Date
    Oct 2010
    Posts
    27
    Vote Rating
    0
    shahab_et is on a distinguished road

      0  

    Question Using Grid RecordForm and java (Seam Framework)

    Using Grid RecordForm and java (Seam Framework)


    hi everyone,

    I want to use this component in java (and seam framework) using webService technology,
    I have a form in which user is going to add some rows in a grid (i have some lookUp columns too) and then I'm going to collect the data entered by user ,convert it to an object known by my webService and then do the service call.

    and I am newbie in java and ExtJs (used to code in .NET).

    any helps would be appreciated.

    Thanks for your time




    eg.

    book (object)
    --------------
    Id -> long
    Title -> string
    Author -> string


    and this is my service
    ---------------------
    RegisterBooks(List<book> lst);

  6. #566
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,520
    Vote Rating
    375
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    RecordForm (and all Ext and extensions) are server-side language agnostic so you can use anything on the server.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  7. #567
    Ext User
    Join Date
    Dec 2008
    Posts
    108
    Vote Rating
    0
    extjs_new is on a distinguished road

      0  

    Default add new record insertIds

    add new record insertIds


    Quote Originally Posted by jsakalos View Post
    I've done add record - check it out now.
    Hi Saki, hi to all,
    I tested http://recordform.extjs.eu/
    I added new record and this is the response in firebug:

    {"success":true,"insertIds":["24406"]}

    But the new inserted record did not set to the returned insertIds.
    When I tried to edit the newly inserted record, firebug responsed:

    cmd saveData
    data [{"company":"Test321","compID":null}]
    objName company

    same result when i tried to run in my local computer. It did not set the idName to the newly returned insertIds.
    is there anything I need to add/change at the commitChanges function below?

    PHP Code:
     // {{{
     
    ,commitChanges:function() {
      var 
    records this.store.getModifiedRecords();
      if(!
    records.length) {
       return;
      }
      var 
    data = [];
      
    Ext.each(records, function(ri) {
       var 
    r.getChanges();
       if(
    r.data.newRecord) {
        
    o.newRecord true;
       }
       
    o[this.idName] = r.get(this.idName);
           
    data.push(o);
      }, 
    this);
      var 
    = {
        
    url:this.url
       
    ,method:'post'
       
    ,callback:this.requestCallback
       
    ,scope:this
       
    ,params:{
         
    cmd:'saveData'
        
    ,objName:this.objName
        
    ,data:Ext.encode(data)
        }
      };
      
    Ext.Ajax.request(o);
     } 
    // eo function commitChanges
     // }}} 
    this is the part requestCallback:
    PHP Code:
    switch(options.params.cmd) {
       case 
    'saveData':
        var 
    records this.store.getModifiedRecords();
        
    Ext.each(records, function(ri) {
         if(
    o.insertIds && o.insertIds[i]) {
          
    r.set(this.idNameo.insertIds[i]);
          
    delete(r.data.newRecord);
         }
        });
        
    this.store.commitChanges();
       break;
       case 
    'deleteData':   
         
    Ext.Msg.show({
           
    title:'Deletion Successful'
          
    ,msg:'Successfully deleted.'
          
    ,icon:Ext.Msg.INFO
          
    ,buttons:Ext.Msg.OK       
         
    });   
       break;
      } 

  8. #568
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,520
    Vote Rating
    375
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    If you're running Ext 3.x you do not need to do anything as 3+ Ext versions contain complete infrastructure of CRUD operations. You would only use the form creation code, not the grid records saving, from RecordForm example.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  9. #569
    Ext User
    Join Date
    Dec 2008
    Posts
    108
    Vote Rating
    0
    extjs_new is on a distinguished road

      0  

    Default


    I'm using Ext 2.3.0....
    If I will use Ext 3.x, then I need to change a lot of things...
    but for now, do anyone has a solution for Ext 2.3.0 upon adding new record - newly returned insertIds will set the idName values to the newRecords

    Thanks,

  10. #570
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,520
    Vote Rating
    375
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    First of all, this has nothing to do with the RecordForm plugin itself, it's related only to the example.

    OK, the logic of setting ids is pretty simple (in requestCallback function):
    PHP Code:

            
    switch(options.params.cmd) {
                case 
    'saveData':
                    var 
    records this.store.getModifiedRecords();
                    
    Ext.each(records, function(ri) {
                        if(
    o.insertIds && o.insertIds[i]) {
                            
    r.set(this.idNameo.insertIds[i]);
                            
    delete(r.data.newRecord);
                        }
                    });
                    
    this.store.each(function(r) {
                        
    r.commit();
                    });
                    
    this.store.modified = [];
    //                this.store.commitChanges();
                
    break; 
    so you can put a breakpoint in this block to see what's really happening.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


Thread Participants: 97

  1. franklt69 (1 Post)
  2. Wolfgang (1 Post)
  3. mystix (1 Post)
  4. cobnet (8 Posts)
  5. chiphi13 (4 Posts)
  6. mike1993 (1 Post)
  7. violinista (1 Post)
  8. hui2008 (4 Posts)
  9. AlxH (12 Posts)
  10. oracio (1 Post)
  11. CINUE (2 Posts)
  12. phpcoder (3 Posts)
  13. ostghost (2 Posts)
  14. tdikarim (4 Posts)
  15. lkasdorf (3 Posts)
  16. derf (1 Post)
  17. mjlecomte (11 Posts)
  18. farracha (1 Post)
  19. jcwatson11 (2 Posts)
  20. robin30 (8 Posts)
  21. bluesapphire (1 Post)
  22. wm003 (1 Post)
  23. divxer (1 Post)
  24. escalade (2 Posts)
  25. boonkerz (5 Posts)
  26. JamesC (2 Posts)
  27. neenhouse (5 Posts)
  28. mask_hot (18 Posts)
  29. concep86 (2 Posts)
  30. sinma (2 Posts)
  31. kai5263499 (2 Posts)
  32. jcmartinez (1 Post)
  33. trak (1 Post)
  34. amit.shukld (1 Post)
  35. hsurya (1 Post)
  36. richgoldmd (1 Post)
  37. loic (7 Posts)
  38. jimpa911 (1 Post)
  39. chalu (3 Posts)
  40. damian79 (1 Post)
  41. jimkan (6 Posts)
  42. jahong (7 Posts)
  43. winnel (1 Post)
  44. joku (1 Post)
  45. josephf (2 Posts)
  46. indrajit_bin_rahwana (4 Posts)
  47. nojutsu (2 Posts)
  48. pokerking400 (15 Posts)
  49. georgiosleon (2 Posts)
  50. snilson (2 Posts)
  51. nightowl (1 Post)
  52. gthe (1 Post)
  53. descheret (1 Post)
  54. nebbian (2 Posts)
  55. se7en.hu (1 Post)
  56. towanime (2 Posts)
  57. pravidya (4 Posts)
  58. cnagel (2 Posts)
  59. extnam01 (2 Posts)
  60. Rothariger (6 Posts)
  61. dsmaevich (1 Post)
  62. uidtest (2 Posts)
  63. savant (4 Posts)
  64. aserron (1 Post)
  65. skaue (1 Post)
  66. ielektronick (1 Post)
  67. kalpan (4 Posts)
  68. jasonb885 (2 Posts)
  69. wemerson.januario (1 Post)
  70. extjs_new (23 Posts)
  71. Dumas (24 Posts)
  72. m.natarajan (1 Post)
  73. MrEnirO (4 Posts)
  74. jove76 (2 Posts)
  75. CircleCode (3 Posts)
  76. mdimino (7 Posts)
  77. flinz (2 Posts)
  78. vince (2 Posts)
  79. jmaldini (5 Posts)
  80. mixer80 (1 Post)
  81. prox00 (1 Post)
  82. macdoug1 (14 Posts)
  83. return1.at (8 Posts)
  84. islabucasgrande (1 Post)
  85. big (1 Post)
  86. NicP (9 Posts)
  87. taron133 (1 Post)
  88. araiczyk (1 Post)
  89. adhoul (1 Post)
  90. mayurid (9 Posts)
  91. Kalpit (10 Posts)
  92. bizcatalyst (1 Post)
  93. Manuelbond007 (2 Posts)
  94. nasargus (1 Post)
  95. shahab_et (1 Post)
  96. stevwinata (5 Posts)
  97. tomdchi (2 Posts)
Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi