1. #291
    Sencha User
    Join Date
    Jan 2010
    Posts
    13
    Vote Rating
    0
    ozum is on a distinguished road

      0  

    Default Post empty value

    Post empty value


    Another related issue:
    When control is initialized as empty and posted, no parameter is included. However when an item is added and deleted then a parameter is included in post with an empty value.

    Best regards,

  2. #292
    Ext JS Premium Member
    Join Date
    May 2007
    Posts
    698
    Vote Rating
    3
    danh2000 is on a distinguished road

      0  

    Default


    Quote Originally Posted by ozum View Post
    Another related issue:
    When control is initialized as empty and posted, no parameter is included. However when an item is added and deleted then a parameter is included in post with an empty value.

    Best regards,
    I'll take a look at the disabled issue shortly.

    Can you provide some more details about the above problem - how do you 'post' your data - are you using a BasicForm.submit call?

    A testcase would be helpful.

    Thanks.

  3. #293
    Sencha User
    Join Date
    Jan 2010
    Posts
    13
    Vote Rating
    0
    ozum is on a distinguished road

      0  

    Default Test Case

    Test Case


    Below is a simplified form code for testing purposes:

    There are 2 fields: legalname (textfield), target (superboxselect)
    When you push save button form will post with PUT method to http://localhost:3000/data/1

    I observe PUT data with FireBug.

    Step by step cases:

    CASE 1:
    1. Push save button without touching anything.
    2. Form will put values:
      legalname=BikeCo
    CASE 2:
    1. Refresh form and select "Men" from superboxselect.
    2. Push save.
    3. Form will put values:
      legalname=BikeCo&target=5001
    CASE 3:
    1. Refresh form and select "Men" from superboxselect.
    2. Then unselect "Men" from superboxselect by pressing one of the x buttons.
    3. Push save.
    4. Form will put values:
      legalname=BikeCo&target=

    Case 1 and 3 should send same values, whereas case 3 sends an extra "target" parameter without any value.

    I hope I clarified myself.

    Thanks for your attention.

    Code:
    var onSuccessOrFail = function(form, action) {
        var formPanel = Ext.getCmp('myFormPanel');
        formPanel.el.unmask(); // 1
        var result = action.result;
        if (result.success) { // 2
            Ext.MessageBox.alert('Success', action.result.msg);
        } else {
            Ext.MessageBox.alert('Failure', action.result.msg);
        }
    }
    
    var submitHandler = function() {
        var formPanel = Ext.getCmp('myFormPanel');
        formPanel.el.mask('Please wait', 'x-mask-loading');
    
        formPanel.getForm().submit({
            method: 'PUT',
            url: 'http://localhost:3000/data/1',
            success: onSuccessOrFail,
            failure: onSuccessOrFail
        });
    }
    
    function deneme() {
    
        var form = new Ext.form.FormPanel({
            id: "myFormPanel",
            border: false,
            frame: true,
            items: [{
                xtype: 'tabpanel',
                baseCls: "x-plain",
                activeTab: 0,
                frame: false,
                border: true,
                deferredRender: false,
                defaults: {
                    frame: false,
                    layout: 'form',
                    labelWidth: 80,
                    defaultType: 'textfield',
                    hideMode: 'offsets',
                },
                items: [{
                    title: "Main",
                    id: "i4",
                    autoScroll: true,
                    items: [{
                        xtype: 'fieldset',
                        layout: 'column',
                        id: "i3",
                        title: "Main",
                        border: true,
                        defaults: {
                            layout: 'form',
                            border: false,
                            xtype: 'panel',
                        },
                        items: [{
                            columnWidth: 1.000,
                            defaults: {
                                msgTarget: 'side',
                            },
                            items: [{
                                "disabled": false,
                                "value": "BikeCo",
                                "name": "legalname",
                                "xtype": "textfield",
                                "allowBlank": true,
                                "id": "i1",
                                "fieldLabel": "Legal Name"
                            },
                            {
                                "submitValue": true,
                                "disabled": false,
                                "store": [[5004, "A+ Consumers"], [5003, "Children"], [5005, "Home Owners"], [5001, "Men"], [5002, "Women"]],
                                "mode": "local",
                                "value": "",
                                "name": "target",
                                "xtype": "superboxselect",
                                "allowBlank": true,
                                "id": "i2",
                                "fieldLabel": "Target",
                                "resizable": true
                            }
    
                            ]
                        }
    
                        ]
                    }
    
                    ]
                }
    
                ]
            }],
    
            buttons: [{
                text: "Save",
                handler: submitHandler
            }]
        });
    
        var win = new Ext.Window({
            width: 720,
            height: 480,
            layout: "fit",
            modal: true,
            title: 'Contact',
            items: form
        });
    
        win.show();

  4. #294
    Ext JS Premium Member
    Join Date
    May 2007
    Posts
    698
    Vote Rating
    3
    danh2000 is on a distinguished road

      0  

    Default


    @ozum,

    Thanks, there was a conflict with the forceFormValue config, which I've fixed. I've also rectified the disabled issue in all scenarios.

    Thanks for your help, you'll see these fixes in the next version which I'll post soon.

  5. #295
    Ext JS Premium Member
    Join Date
    May 2007
    Posts
    698
    Vote Rating
    3
    danh2000 is on a distinguished road

      0  

    Default


    UPDATE 15/01/2009

    Fixed regression that made transforming an HTML Select incompatible with Ext 2.x
    Fixed issue with setValue being used prior to rendering.
    Fix to prevent passing null to setValue from causing problems.
    Fixed inconsistency regarding forceFormValue config and form submits.
    Fix to prevent component submitting values when disabled.
    Fix to ensure that minChars does not affect a values query.

    New version attached to the first post

  6. #296
    Ext JS Premium Member
    Join Date
    May 2007
    Posts
    698
    Vote Rating
    3
    danh2000 is on a distinguished road

      0  

    Default


    UPDATE 15/01/2009 (part 2)

    Fix to disable item listeners when component is disabled.

    New version attached to the first post

  7. #297
    Sencha User
    Join Date
    Jan 2010
    Posts
    13
    Vote Rating
    0
    ozum is on a distinguished road

      0  

    Default Form dissappears

    Form dissappears


    Hello,

    In last version (15/01/2010 Part 2), when superboxselect is disabled via initial configuration, whole form disappears.

    Regards.

    Code:
                            {
                                "submitValue": true,
                                "disabled": true,
                                "store": [[5004, "A+ Consumers"], [5003, "Children"], [5005, "Home Owners"], [5001, "Men"], [5002, "Women"]],
                                "mode": "local",
                                "value": "",
                                "name": "target",
                                "xtype": "superboxselect",
                                "allowBlank": true,
                                "id": "i2",
                                "fieldLabel": "Target",
                                "resizable": true
                            }

  8. #298
    Ext JS Premium Member
    Join Date
    May 2007
    Posts
    698
    Vote Rating
    3
    danh2000 is on a distinguished road

      0  

    Default


    @ozum,

    It's an issue with the onDisable template method - I expected the hidden field to have been rendered before onDisable was called, but this isn't the case when you specify disabled as part of the config, therefore a JavaScript error is thrown.

    I'll post an update soon.

  9. #299
    Ext JS Premium Member
    Join Date
    May 2007
    Posts
    698
    Vote Rating
    3
    danh2000 is on a distinguished road

      0  

    Default


    UPDATE 16/01/2009

    Fixed bug when setting disabled in config.
    Updated CSS to remove gray background from input when component is disabled.

    New version attached to the first post

  10. #300
    Ext JS Premium Member
    Join Date
    May 2007
    Posts
    698
    Vote Rating
    3
    danh2000 is on a distinguished road

      0  

    Default


    UPDATE 16/01/2009 (Part 2)

    Fixed to prevent extra empty hiddenName value from being posted.

    @frederickd - I'd forgotten about this one until I saw you on the forum

    New version attached to the first post

Thread Participants: 119

  1. galdaka (9 Posts)
  2. aconran (1 Post)
  3. stever (4 Posts)
  4. dj (1 Post)
  5. mystix (18 Posts)
  6. MarkB (3 Posts)
  7. DrZog (1 Post)
  8. JorisA (2 Posts)
  9. jheid (3 Posts)
  10. Joe (1 Post)
  11. mschering (1 Post)
  12. gigel (1 Post)
  13. akannu (1 Post)
  14. phillipL (1 Post)
  15. badgerd (1 Post)
  16. cmendez21 (1 Post)
  17. mjlecomte (1 Post)
  18. grgur (1 Post)
  19. xantus (1 Post)
  20. garraS (3 Posts)
  21. vahid4134 (2 Posts)
  22. Lloyd K (2 Posts)
  23. boonkerz (3 Posts)
  24. crxtech (3 Posts)
  25. mishanian (7 Posts)
  26. fpw23 (1 Post)
  27. sanjshah (6 Posts)
  28. Zolcsi (1 Post)
  29. SharePat (1 Post)
  30. mjhaston (1 Post)
  31. radtad (16 Posts)
  32. Joyfulbob (2 Posts)
  33. kveeiv (1 Post)
  34. armandoxxx (2 Posts)
  35. imran (1 Post)
  36. Eric24 (1 Post)
  37. drunknmunky (1 Post)
  38. raphac (1 Post)
  39. charleshimmer (1 Post)
  40. frankthetank (4 Posts)
  41. qooleot (3 Posts)
  42. gianpaulo (1 Post)
  43. dennispg (9 Posts)
  44. dasnk (1 Post)
  45. grahamda (1 Post)
  46. sdavids (1 Post)
  47. jasonb885 (1 Post)
  48. wemerson.januario (1 Post)
  49. dizor (3 Posts)
  50. Stju (5 Posts)
  51. extjs_new (1 Post)
  52. senacle (1 Post)
  53. elderotaku (2 Posts)
  54. Dumas (1 Post)
  55. grzegorz.borkowski (13 Posts)
  56. bueth (1 Post)
  57. nonyus (2 Posts)
  58. travisbell (2 Posts)
  59. Jangla (2 Posts)
  60. woooop (2 Posts)
  61. MH61 (2 Posts)
  62. TDub (1 Post)
  63. antoniode (5 Posts)
  64. xiongzhijian51 (1 Post)
  65. l0ga4 (1 Post)
  66. nohurge (2 Posts)
  67. MarkBOneSmart (1 Post)
  68. The Transporter (2 Posts)
  69. swarnendude (1 Post)
  70. arconen (2 Posts)
  71. mratzloff (9 Posts)
  72. Tom23 (1 Post)
  73. nadim (15 Posts)
  74. hongtj (2 Posts)
  75. max.hauser (2 Posts)
  76. dcw (1 Post)
  77. pilotsnipes (2 Posts)
  78. matthewcrist (2 Posts)
  79. fargs (1 Post)
  80. dvuja2 (2 Posts)
  81. sudhirhv (1 Post)
  82. lanhun (2 Posts)
  83. galoch (1 Post)
  84. frrogoy (1 Post)
  85. tboswell (1 Post)
  86. ozum (5 Posts)
  87. scusyxx (1 Post)
  88. hoca (1 Post)
  89. jayasreepc (1 Post)
  90. Jensen (1 Post)
  91. icarey (5 Posts)
  92. mohan_b (1 Post)
  93. skbach_pointyhat (1 Post)
  94. timbonicus (3 Posts)
  95. rachid.abdessamad (1 Post)
  96. ajitmogra (1 Post)
  97. Korbin (1 Post)
  98. istetska (3 Posts)
  99. ian.young (1 Post)
  100. muncher (2 Posts)
  101. sebterzi (2 Posts)
  102. forestclown (1 Post)
  103. Akey (1 Post)
  104. pret (1 Post)
  105. OpnSrce (1 Post)
  106. sriramkumarp (1 Post)
  107. extjs-dev (4 Posts)
  108. mvoss (1 Post)
  109. thomaskee007 (1 Post)
  110. rajshinny (1 Post)
  111. masood (1 Post)
  112. sebholl (1 Post)
  113. forestkwan (1 Post)
  114. deepthi_r (1 Post)
  115. panshr (1 Post)
  116. brian.moeskau (1 Post)
  117. ldashevskiy (1 Post)
  118. lbilde (1 Post)
  119. aoyii (1 Post)

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar