DataList
The DataList is a list with one column providing random access to the contents of the individual cells using their position, i.e., row number. Imagine the DataList as a file-card box. When you add an entry, Plant Simulation moves all entries after this one position down. You can delete an entry, and you can read an entry and add that entry back to the DataList.
You can access the functions of the list objects on the List Ribbon Tab.
The DataList always opens in the background behind any open dialog windows. You can also open it in the foreground as a dialog window with the method openDialogBox.
The DataList shares its built-in properties with the data type List.
Note the difference between the object DataList, which you can insert into a model, and the data type list. You can create user-defined attributes and local and global variables of data type list that are part of another object and thus are not an object of their own and do not have their own icon.
For this reason these variables and attributes do not recognize the methods of the DataList, such as location or existsIcon. All other methods, especially for read and write access, apply to both the DataList and to variables and attributes.
To add the DataList to your simulation model, click Manage Class Library > Basic Objects > InformationFlow > DataList on the Home ribbon tab.
Related Topics
Shared Properties of Lists and Tables
Work with Data in a List in the Plant Simulation Step-by-Step Help
Accessing Data in Lists in the Plant Simulation Step-by-Step Help
Accessing a Range of Cells with a Method
Creating Lists within Lists and Tables
Creating a List within a DataList