Create a new record
Connect to MI and specify a database and table.Access a Tabular attribute
Access the (empty) Tabular attribute Workflow history.show() shows the table in ASCII format.
__repr__ of the attribute. There are currently no rows in the table.
load() method (there is no data to load in this example):
Add rows and data
Add three (empty) rows to the Tabular object, and view the table in an ACSII-style format.tabular property. The column name should be provided as a string followed by the
index of the row. Start by populating the first row:
<linking value not chosen>.
Edit the table
Rows can be moved using theswap_rows() method.
Access the units
Each Tabular object is associated with a TabularUnits object which stores the units for the Tabular data. View (and edit) these units through thetabular.units property.
Write your changes to MI
Set your new attribute to update, and write the changes to the server.Notes about Tabular data:
- Point-type values in Tabular cannot have parameters, and are always lists.
- Any changes to linked data will be ignored on import.