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 Unanswered: 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,412
    Answers
    3898
    Vote Rating
    1288
      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!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

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
  •