5 Replies Latest reply on Dec 29, 2009 5:32 AM by Mac_06

    change text by Dropdown-List

    Mac_06 Level 2

      Hello Folks

       

      I am newbie to javascripting and getting some trouble by find change script. i am trying to add a dropdown menu to add month in my script but it returns complete list of month instead of selection one please refer the fragment code.

       

      var myMon;

      var myDialog = app.dialogs.add({name:"Issue Footer", canCancel:true});

      with(dialogColumns.add())

      with(borderPanels.add()){

      {
           staticTexts.add({staticLabel:"Months"});
          }
      {
      myMon = dropdowns.add({stringList:monthlist, selectedIndex:0});

      }

      if(myDialog.show() == true){
        var myString;
       
        myString = myMon.stringList

        myDialog.destroy();
        }

       

       

      Mac