DataTable (object)

The DataTable is a list with two or more columns. You can access the individual cells by employing their index, i.e., by their position designated by the number of the row and the number of the column. You can compare a DataTable to a shelf. Enter values and references to the cells and remove them again. As opposed to the DataList, the contents of the cells remain in the DataTable, the DataTable can also have blank cells in a range. You can add and remove rows and columns during a simulation run at will.

You can access the functions of the list objects on the List Ribbon Tab.

Note:

The DataTable 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 DataTable shares its built-in properties with the data type Table. Note the difference between the object DataTable that you can insert into models and the data type table. You can create user-defined attributes and local and global variables of data type table 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 DataTable, such as location or existsIcon. All other methods, especially for read and write access apply to both the DataTable and to variables and attributes.

You can also show the contents of a DataTable in an HtmlReport, compare Display a DataTable or a List Object.

To add the DataTable to your simulation model, click Manage Class Library > Basic Objects > InformationFlow > DataTable on the Home ribbon tab.

Compare the sample models: Click the Window ribbon tab, click Start Page > Getting Started > Example Models and click Small Examples. Then, select the respective Category, the Topic, and the Example in the dialog Examples Collection and click Open Model.

Note:

The MaterialsTable of the fluid objects shares the properties of the DataTable.

Related Topics

Work with Data in a List in the Plant Simulation Step-by-Step Help

Work with Data on the DataTable 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 DataTable

Work with Data on the DataTable

Window of the DataTable

Methods of the DataTable

Read-Only Attributes of the DataTable

Attributes of the DataTable

As lists and tables are so versatile we use them in a number of our sample models:

Produce Parts According to a Delivery Table

Produce Parts in a Fixed Sequence Over and Over Again

Produce Parts According to a Random Frequency Entered into a Table

Produce Parts According to a Percentage Entered into a Table

Define Times in the Class of the Processing Stations

Create the Work Plan

Produce the Parts with a Source Using a Sequence Table

Visualize the Occupancy of the Store Over Time

Model Processing and Set-up Jobs

Write the Contents List into a Table for Further Processing

Select Where the Data Comes From