1. #1
    Sencha User
    Join Date
    May 2011
    Posts
    15
    Vote Rating
    1
    webdev2111 is on a distinguished road

      0  

    Exclamation Unanswered: How to create dynamic tabs from xml feed?

    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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,647
    Vote Rating
    898
    Answers
    3575
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      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 @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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.

Thread Participants: 1

Tags for this Thread