Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-9168 in a recent build.
  1. #1
    Sencha Premium Member
    Join Date
    Apr 2010
    Posts
    193
    Vote Rating
    24
    elgs will become famous soon enough

      1  

    Default [BUG-EXTJS-4.2.0] Item not being removed from form

    [BUG-EXTJS-4.2.0] Item not being removed from form


    I have a form with several field containers, inside each field container are a text field and a button. If the button is clicked, the field container is removed from the form. It looks something like the screenshots:
    Screen Shot 2013-03-16 at 1.24.56 PM.png
    Screen Shot 2013-03-16 at 1.25.17 PM.png

    In Extjs 4.1, the formpanel.getForm().getValues() returns only the actual form fields values, whereas in 4.2, even if I removed some fields, it returns all fields values, including those removed.

    Here's the minified files to demonstrate this problem:
    Form-Bug.zip

  2. #2
    Sencha Premium Member
    Join Date
    Apr 2010
    Posts
    193
    Vote Rating
    24
    elgs will become famous soon enough

      0  

    Default


    Has anyone from the Extjs dev team had a chance to take a look at this issue? I need a fix of this problem quickly, otherwise my project release is hanging there because of this issue. Thanks!

  3. #3
    Sencha Premium Member
    Join Date
    Apr 2010
    Posts
    193
    Vote Rating
    24
    elgs will become famous soon enough

      0  

    Default


    Hi Sencha, have you had a chance to figure out when the fixed is likely to be released? If it is a few days, I will wait. If it's a few months, I probably have to get my hands dirty. Dear Sencha, I understand you have your processes of releasing software. However, I'm hoping the iterations of bug fixing/code improvement could be more accessible. I'm not expecting a new version will be released every few days, but in between two releases, more iterations could be possible, I think.

  4. #4
    Sencha User
    Join Date
    Sep 2011
    Posts
    25
    Vote Rating
    2
    dcohn is on a distinguished road

      1  

    Default Workaround

    Workaround


    Sencha team:

    The issue seems to lie in the Ext.container.Monitor code, it doesn't catch that form field that is removed if it wasn't removed directly but rather by having its owner container removed.

    elgs:

    A workaround that I'm using for now is the following. Before removing the container that contains the form fields, run:

    Code:
    Ext.each(container.query('[isFormField]'), function(formField){
    formField.ownerCt.remove(formField);
    });

  5. #5
    Sencha User
    Join Date
    Sep 2011
    Posts
    25
    Vote Rating
    2
    dcohn is on a distinguished road

      0  

    Default


    The reason this works, btw, is because the monitor is watching for form fields being removed from their containers. It misses when a container that contains form fields is removed. But if you just remove each form field from its container first, the monitor catches that and removes the field from its list of fields that it pulls values from

  6. #6
    Sencha Premium Member
    Join Date
    Apr 2010
    Posts
    193
    Vote Rating
    24
    elgs will become famous soon enough

      0  

    Default


    Quote Originally Posted by dcohn View Post
    Code:
    Ext.each(container.query('[isFormField]'), function(formField){
    formField.ownerCt.remove(formField);
    });
    Awesome code! Thanks @dcohn, it works!

    One more question to Sencha:
    @dcohn's code works without any problem. However, before I tried @dcohn's code, actually I tried the following code:
    Code:
    container.removeAll();
    theFormPanel.remove(container);
    The code above works, but the container's label remained even if the container itself had been removed from the formpanel.

Thread Participants: 1

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