Hybrid View

    This issue duplicates another issue.
  1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    9
    Vote Rating
    0
    rkasim is on a distinguished road

      0  

    Default Form Panel delete items are not getting updated to .getForm() instance

    Form Panel delete items are not getting updated to .getForm() instance


    Hi ,

    Basically , I m building form panel having items as Field container . Every Field container is having items and delete operation.

    When I perform delete operation on Form panel , simply I go with
    formPanel.remove(item);

    Above statement will remove field container item of formPanel , until here everything looks good.

    But when I read form instance to read the fieldvalues , deleted items are also available .
    var form = formPanel.getForm();

    if (form.isValid()) {
    Ext.iterate(form.getFieldValues(), function(key, value) {
    //read values , here deleted items are also available
    },this);

    I wonder why basic form is having still deleted keys/items where as formPanel is updated and doesn't have deleted items?

    Could somebody help me out how I can basic form ? I have tried with formPanel.doLayout() but of no use.

    Regards,
    Ravi.

  2. #2
    Sencha User
    Join Date
    Apr 2013
    Posts
    1
    Vote Rating
    0
    Merlina is on a distinguished road

      0  

    Default


    What do you mean by "deleted items are also available"?

  3. #3
    Sencha User
    Join Date
    May 2012
    Posts
    9
    Vote Rating
    0
    rkasim is on a distinguished road

      0  

    Default


    Thanks Merlina.

    As mentioned , form is still having deleted item keys .
    So when I read getFieldValues() , all the keys are retrieved. I expect that deleted item keys should also be flushed out from Basic Form.

    I have debugged the form and found monitor having keys and items . Not sure how to refresh , any direct approach ?

    Regards,
    Ravi.

  4. #4
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    5,335
    Vote Rating
    197
    slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of

      0  

    Default


    What if you do remove(item, true)? Do you still have the issue then?

  5. #5
    Sencha User
    Join Date
    May 2012
    Posts
    9
    Vote Rating
    0
    rkasim is on a distinguished road

      0  

    Default


    Hi Slemmon,

    Still I see same issues , form->monitor is still having deleted items and keys.

    Regards,
    Ravi.

  6. #6
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    5,335
    Vote Rating
    197
    slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of

      0  

    Default


    I've not been able to recreate the issue you're seeing. Can you post an inclusive test case that demonstrates the issue?
    Also, are you seeing the issue on version 4.2 (or 4.2.1 Beta)?

Thread Participants: 2