2 Replies Latest reply on Aug 19, 2010 6:05 AM by welcomecan

    need soultion for this?

    welcomecan Level 1

      hai friends,

             is this possible to collect indivial data in mutltidimension array

       

           for example

       

      a[0]={1,2,3,4}

       

      In this 2 one array

      2[0]={hello,wel1,something}

      2[1]={q,wel2,r}

       

       

      i need that specfic data {wel1,wel2}  display in combobox.

       

       

      give example

        • 1. Re: need soultion for this?
          ccay

          You could create an array collection like this:


               answersArray = new ArrayCollection([
                    {Question:"1", Answer:"One"},
                    {Question:"2", Answer:"Two"},
                    {Question:"3", Answer:"Three"},

                    {Question:"4", Answer:"Four"}

               ]);

           

          and access the values like this:

           

               var question:String = answersArray.getItemAt(i).Question;

               var answer:String = answersArray.getItemAt(i).Answer;

          • 2. Re: need soultion for this?
            welcomecan Level 1

             

             

            my question

            resdata1 and rulename is array

            ruleName.length is 5.

            newcb is combobox id.

            spko_value include something

             

            for(n=0;n<resdata1[i].ruleName.length;n++)

            {

            newcb.dataProvider=resdata1[i].ruleName[n].spko_value;

            }

             

            i want to collect data and display in combobox