6 Replies Latest reply on Jul 16, 2010 1:37 AM by r_olsen

    [ScriptUI] parse array to dropdownlist

    r_olsen

      Hi,

       

      How do I parse the array to the dropdownlist? This throws the exception

       

      ReferenceError: Bad argument : Invalid resource format. Error in line 1, at character offset 48, in '{text: 'window',
      ddL: DropDownList {items:item1,item2,item3},

       

      var a = ["item1", "item2", "item3"];
      
      // dialog code from autoLayoutCreator
      var res =
      "dialog {text: 'window', \
      ddL: DropDownList {items:"+a+"},\
      }";
      win = new Window (res);
      win.center();

       

       

      Thanks, Rasmus