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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Answers
    3931
    Vote Rating
    1272
      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
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    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
  •