Results 1 to 2 of 2

Thread: How to create dynamic tabs from xml feed?

  1. #1
    Sencha User
    Join Date
    May 2011
    Posts
    15
    Vote Rating
    2
      0  

    Exclamation How to create dynamic tabs from xml feed?

    How do I go about creating dynamic tabs based on xml attribute View type="hardDisks" and displaying the childrens in a table.
    <entry>
    <content >
    <inst:Some_data >
    <atom:link href="https:" rel="self" />
    <inst:View type="hardDisks">
    <inst:field name="TargetObjectClass">Disk</inst:field>
    <inst:field name="TargetObjectName">DISK A1</inst:field>
    <inst:field name="DisplayName">DISK-Name</inst:field>
    <inst:field name="MaxAvgDataRate KB/sec">50.00 KB/sec</inst:field>
    <inst:field name="MaxAvgQueueDepth">50.00</inst:field>
    </inst:View>
    <atom:link vsc:relName="Some_LocalElement" />
    </inst:Some_data>
    </content>
    </entry>

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    Once you get the XML back and it is decoded (via a store and xml reader?) then you just need to iterate through them, build an array of items you want to add to the tab panel and then do one add.
    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

Tags for this Thread

Posting Permissions

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