1. #521
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,563
    Vote Rating
    384
    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


    Same way as it done in the 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


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

      0  

    Default enable and disable the OK button

    enable and disable the OK button


    Hi Saki,

    How did you manage to enable and disable the OK button upon adding a new data?
    Inspecting your Ext.ux.grid.RecordForm.js file, I cannot figure it out.
    How is formBind:true achieved?

  3. #523
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,563
    Vote Rating
    384
    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


    Well, I cannot explain it better as it has already been explained in documentation. Have you ever read the doc for formBind?
    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. #524
    Sencha User Dumas's Avatar
    Join Date
    Dec 2008
    Location
    Vienna, Austria
    Posts
    583
    Vote Rating
    9
    Dumas will become famous soon enough

      0  

    Default


    Hi Saki!

    In you example implementation you have following function to process data from the server:
    Code:
    1. requestCallback:function(options, success, response) {
    2. [...]
    3. switch(options.params.cmd) {
    4. case 'saveData':
    5. var records = this.store.getModifiedRecords();
    6. Ext.each(records, function(r, i) {
    7. if(o.insertIds && o.insertIds[i]) {
    8. r.set(this.idName, o.insertIds[i]);
    9. delete(r.data.newRecord);
    10. // Dumas: Why not just call r.commit(); here?
    11. }
    12. });
    13. this.store.each(function(r) {
    14. r.commit();
    15. });
    16. this.store.modified = [];
    17. // this.store.commitChanges();
    18. break;
    19. case 'deleteData':
    20. break;
    21. }
    22. } // eo function requestCallback
    Is there a reason why you do this.store.each(function(r) { r.commit(); }); instead of just committing in the above Ext.each(records,...)?
    This store.each make the function extremly slow.

    regards,
    Roland
    Last edited by Dumas; 13 Jun 2010 at 1:59 AM. Reason: formtting fixed

  5. #525
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,563
    Vote Rating
    384
    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


    It was written for Ext 2.2 that hadn't infrastructure of phantom records and saving. The upcoming new version will use all bells and whistles that Ext 3.x provides.
    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


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

      0  

    Default


    Hi Saki,
    I downloaded your sample and it works fine, however I could not get the search function to work.
    I check your php file
    PHP Code:
    protected function getWhere($params) {
      
    extract($params);
      
    $where = isset($where) ? "where $where"";
      if(
    $query && is_array($search) && sizeof($search)) {
       
    $a = array();
       foreach(
    $search as $f) {
        
    $a[] = "$f regexp '$query'";
       }
       
    $where .= $where " and(" "where (";
       
    $where .= implode(" or "$a) . ")";
      }
      return 
    $where;
     } 
    but $where is not in the parameters list...

  7. #527
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,563
    Vote Rating
    384
    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 could not get the search function to work
    is not enough info for advising. The chunk of code above processes "query" and "where", if set.
    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


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

      0  

    Default


    hi Saki, i think its my php or apache settings.
    I changed it to:
    $params["search"] = isset($_REQUEST["fields"]) ? json_decode(stripslashes($_REQUEST["fields"])) : null;

  9. #529
    Ext User
    Join Date
    Jun 2010
    Posts
    10
    Vote Rating
    0
    Kalpit is on a distinguished road

      0  

    Default Form Layout

    Form Layout


    Hi,

    I am trying to use your plugin, but I am unable to change the record form layout to nested vbox and hbox. Can you please guide me what changes would be required to the code.

  10. #530
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,563
    Vote Rating
    384
    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 doesn't support configurable layouts. You can only set number of columns of fields.
    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)