2 Replies Latest reply on Jul 26, 2011 11:40 PM by jeanmed

    Dynamic dropdowns

    jeanmed Level 1

      Hello

       

       

      I need to creat the content of a dropdowns menu from an array.

       

      But it dont accept "stringList:[list]".

       

       

      Cane you help me ?

       

      Thanks

       

       

       

       

      My code :

      list=[];
      for (i = 0; i < 150; i++)
      {
          list.push ("item"+i)
      }  

       

          var myDialog = app.dialogs.add({name:"my dialog box", canCancel:true});
          with(myDialog){
              with(dialogColumns.add()){
                  with(dialogRows.add()){
                 
                     
                          var typeDeCharte = dropdowns.add({stringList:[list], selectedIndex:0});
                       
                     
                  }
                 
                 
                 
                 
                 
              }}
          myDialog.show();