Results 1 to 10 of 10

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

Hybrid View

Previous Post Previous Post   Next Post Next Post
    This issue duplicates another issue.
  1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    12
    Vote Rating
    0
      0  

    Default 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
      0  

    Default

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

  3. #3
    Sencha User
    Join Date
    May 2012
    Posts
    12
    Vote Rating
    0
      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 - Documentation Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,162
    Vote Rating
    257
      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
    12
    Vote Rating
    0
      0  

    Default

    Hi Slemmon,

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

    Regards,
    Ravi.

  6. #6
    Sencha - Documentation Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,162
    Vote Rating
    257
      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)?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •