Results 1 to 2 of 2

Thread: List not binding well

  1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    11
    Vote Rating
    0
      0  

    Default List not binding well

    Hi,

    I am getting a problem as below. I am having a xml as below:

    Code:
    <Product id = 1>
          <items>
               <Product id =2>
               </Product>
               <Product id=3>
               </Product>
           </items>
    </Product>
    <Product id = 4>
           <items>
                <Product id =5>
                </Product>
                <Product id=6>
                </Product>
                <Product id=7>
                </Product>
           </items>
    </Product>
    I want that list should just bind the Products 1 and 4, only, but on running the list gets bound to all the Products from 1 to 7

    Please suggest. How the model/view needs to be altered
    Last edited by mitchellsimoens; 9 Apr 2012 at 4:57 AM. Reason: added [CODE] tags

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,029
    Answers
    3976
    Vote Rating
    1367
      0  

    Default

    There is currently a bug open for the Xml reader that the mapping is wrong. The issue is if the elements have the same name then it will get mapped. If you change the name you will have no issue.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

Posting Permissions

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