1 Reply Latest reply on Dec 1, 2008 10:24 PM by Martin Fischer

    "Unknown list item type 'list'" error

      Hi Friends,

      I am facing a problem while creating a listbox (in inDesign JScript). I have written the following syntax to create the same:

      var myDialog1 = app.dialogs.add({name:"Simple Dialog"});
      var styleList = new Array("Part Num","Part Title","Chap Num","Chap Title","Chap TOC");
      var submenuItems = new Array("Style Formatting","Indents and Spacing","Paragraph Rules","Keep Options","Hyphenations","Nested Styles","Bullets and Numbering");
      with(myDialog1){
      with(dialogColumns.add()){
      with(dialogRows.add()){
      with(borderPanels.add()){
      with(dialogColumns.add()){
      var styles = dropdowns.add({stringList:styleList,selectedIndex:0,minWidth:133});
      }
      with(dialogColumns.add()){
      var submenu = ListBox.add("list",submenuItems);
      }
      }
      }
      }
      }

      myDialog1.show();

      But it is showing the following error message:
      "Unknown list item type 'list'"

      I want to know that what I should write in the parameter list. Please help me in this regard.

      Thanks a lot in advance