3 Replies Latest reply on Oct 3, 2010 8:19 AM by Claudiu Ursica

    How To Load A Document From An Array ?

    Whitetimer Level 1

      Hi All

       

      If i have an xml file

      <WhitetimeDocuments>
           <documents>
                <id>WhitetimeIntro</id>
                <name>Introduction To White Time</name>
                <location>WT_Intro.txt</location>
           </documents>
           <documents>
                <id>WhitetimeHealing</id>
                <name>White Time As A Healing Modality</name>
                <location>WT_Healing.txt</location>
           </documents>
           <documents>
                <id>WhitetimeClassOutline</id>
                <name>Outline For White Time Classes</name>
                <location>WT_Class_Intro.txt</location>
           </documents>
           <documents>
                <id>WhitetimeFacts</id>
                <name>Facts About White Time</name>
                <location>WT_Facts.txt</location>
           </documents>
      </WhitetimeDocuments>
      

       

      How can i load the document into a textarea component based on a button click by the user ?

       

      I have the httpservice call and a seperate Button Component for each document choice, but how do i then load the document ?

       

      Also how can a generate a dynamic list of buttons, based on the labelField 'Name' instead of having a static list of Button components ?

       

      Many Many Thanks

       

      Whitetimer

       

      Many Thanks