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 User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,029
    Answers
    3976
    Vote Rating
    1368
      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
    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

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
  •