Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #81
    Ext User
    Join Date
    Jul 2007
    Location
    Florida
    Posts
    9,996
    Vote Rating
    5
    mjlecomte will become famous soon enough mjlecomte will become famous soon enough

      0  

    Default


    Quote Originally Posted by cobnet View Post
    After all this typing, a new idea came up, maybe a simple "HELP", "ABOUT" or "FAQ" button could help the end-user understand why their editing was not saved, or what additional steps are needed for the record to be saved? Maybe this new button could be standard for all plugins. Something for the EXT team to ponder about?

    First off it could give credit where credit is due, to the author of the plugin. Next it could detail the version of the plug: "ALPHA", "BETA", whatever. Where to goto for help, details, etc. This last part probably should not be posted directly at your plugin, but I am just throwing up ideas.

    Please don't take this wrong, I would not waste may time if I did not think that this plugin was worth the effort.
    Your thoughts are appreciated, but as you stated, the KISS is the basic premise. Only put what is the bare minimum for the plugin to function. The other stuff you talk about may be nice depending on what a developer wants.

    What you could do is post your modifications to the examples forum and post a link back here. That way you could showcase your version for others to get ideas or cut/paste as they want.

  2. #82
    Sencha User jahong's Avatar
    Join Date
    Mar 2008
    Location
    Indonesia
    Posts
    9
    Vote Rating
    0
    jahong is on a distinguished road

      0  

    Lightbulb


    I`ve made some modification to recordform.js, Ext.ux.grid.RecordForm.js, process-request.php, csql.php.
    The modification of delete, add, and edit is in one click, so no need to click save button on the bottom right (that`s what i asked into this forum).

    File is in zip, and sorry for rough modification JS...
    Attached Files

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


    Thank you for your modifications, however, I'll keep record form as it is. Why?

    Saving data to server doesn't belong to this plugin as it assumes some server backend (idName, url, objName). The server save logic should be executed in store datachanged event if the immediate server save is required by user. http://extjs.com/deploy/dev/docs/?cl...er=datachanged For example, immediate data save is inappropriate in my case where I want to retain possibility of "Reset" entered data to original values.

    Therefore, the plugins must end with updating record of the grid's store where the data is left for further user processing.

    I understand that you may have different requirements, I also see that your code is fine and clean, the only problem is that it is at the wrong place.
    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. #84
    Sencha User jahong's Avatar
    Join Date
    Mar 2008
    Location
    Indonesia
    Posts
    9
    Vote Rating
    0
    jahong is on a distinguished road

      0  

    Thumbs up


    Quote Originally Posted by jsakalos View Post
    ...I understand that you may have different requirements, I also see that your code is fine and clean, the only problem is that it is at the wrong place....
    Sorry for the wrong place...

    BTW, i`m really really really thank you to your Plug-In....

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


    No problem for me, but if you keep it there, what you sure can despite of my advices , it can create some application structure problems for you as your application will grow.
    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. #86
    Ext User
    Join Date
    Sep 2007
    Posts
    104
    Vote Rating
    0
    robin30 is on a distinguished road

      0  

    Thumbs up little problem here.

    little problem here.


    i have an editorgrid.

    after i edit a cell everthing is updated in my database
    through a function save.

    PHP Code:
    function save(oGrid_event){
       
    Ext.Ajax.request({   
          
    waitMsg'Please wait...',
          
    url'php/database.php',
          
    params: {
             
    task"UPDATEBILL",
             
    idoGrid_event.record.data.id,
             
    nameoGrid_event.record.data.name,
             
    dueoGrid_event.record.data.due,
             
    amountoGrid_event.record.data.amount,
             
    paidoGrid_event.record.data.paid,
             
    paid_whenoGrid_event.record.data.paid_when,
             
    amount_paidoGrid_event.record.data.amount_paid
          
    }, 
          
    success: function(response){              
             var 
    result=eval(response.responseText);
             switch(
    result){
             case 
    1:
                
    store.commitChanges();
                
    store.reload();
                break;          
             default:
                
    Ext.MessageBox.alert('Uh uh...','We couldn\'t save him...');
                break;
             }
          },
          
    failure: function(response){
             var 
    result=response.responseText;
             
    Ext.MessageBox.alert('error','could not connect to the database. retry later');    
          }                      
       });   
      } 
    i managed to use your plugin. using the rowaction plugin too.
    when i click on the icon, the window opens and i can change things after i press ok little red triangle on top but i can't seem to make the save button work.

    correct me if i'm wrong but i do believe it has something to do with the cmd saveData.

    so i was wondering if it is possible that as soon as i press the ok button in the window that the function save will get called?

    sorry about my english hope you understand what i'm asking.

    regards, Sincerely,

    Robin30

  7. #87
    Ext User
    Join Date
    Sep 2007
    Posts
    104
    Vote Rating
    0
    robin30 is on a distinguished road

      0  

    Default found the answer

    found the answer


    hi all,

    to come back at my question, i found the answer.

    in case someone is interest.

    in Ext.ux.grid.RecordForm.js i changed this:

    PHP Code:
    onOK:function() {
            
    this.updateRecord();
            
    this.window.hide(null);
        } 
    into

    PHP Code:
    onOK:function() {
            
    this.updateRecord();
            
    commitChanges();
            
    this.window.hide(null);
            
    store.reload();
        } 
    in my main js i added a function commitChanges

    PHP Code:
    commitChanges = function() {
            var 
    records 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:'php/database.php'
                
    ,method:'post'
                
    ,callback:this.requestCallback
                
    ,scope:this
                
    ,params:{
                     
    task:'UPDATEPRES'
                     
    ,id:recordForm.record.data.id
                     
    ,name:recordForm.record.data.name
                
    }
            };
            
    Ext.Ajax.request(o);
        } 
    // eo function commitChanges 
    now if i change the name in the recordForm and i click on ok, the name will be automatically changed in my database and the store will be refreshed so the changes are visible.

    thanks for the great plugin

    regards,

    robin30

  8. #88
    Ext User
    Join Date
    Sep 2007
    Posts
    104
    Vote Rating
    0
    robin30 is on a distinguished road

      0  

    Default one more question if you guys don't mind

    one more question if you guys don't mind


    in recordForm is it possible to hide a certain field?

    now all the fields are shown but 1 field is automatically calculated when i click on ok.
    i rather have people no the oppertunity the be able to change that field.

    thanks

    Sincerely,

    Robin30

  9. #89
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,506
    Vote Rating
    373
    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


    ignoreFields:{compID:true} - I guess this way it is configured on the demo page.
    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


  10. #90
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,506
    Vote Rating
    373
    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


    To your previous post: I recommend against saving data from plugin. This way 1) you create branch - you will need to apply your changes whenever you update the plugin and 2) more important, saving shouldn't be the job for plugin. Listen to datachanged event of grid's store and do whatever is necessary from the event handler.
    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)