Tables

Prev Next

Learn the basics of Tulip’s tables feature.

Overview

Tables allow you to build and edit your own database in Tulip without writing any code.

Rather than writing SQL or HTTP queries to communicate with external data sources, you can create tables and then immediately push and pull data in your apps.

Unlike Variables, which can only track data within an app, tables let you use data across multiple apps.

A table resembles a spreadsheet or a table in SQL.

Use cases

Here are common examples of how to use tables:

  • Work orders: To see the real-time status of a work order, update a table every time the work order passes through a workstation on your floor.
  • Operator permissions/skills matrix: To define which operators are allowed to access certain apps, create a table with each operator on your team and define their permissions across all your apps.
  • Bill of Materials: Track different lists of materials by product or by SKU.
  • Inventory: Track current inventory levels and deduct every time a product is completed or scrapped.
  • Product Genealogy: Track the SKUs or lot numbers of all components in a product.

Fields

Each column in a table is called a Field.

Field limit

Each table can have a maximum of 200 fields, which includes fields that have been archived in the past. So, if 20 fields have been archived previously, the table can have 180 fields.

NOTE

ID fields cannot be deleted.

Field types

Fields have specified types that determine the data type.

  • Text: a text field
  • Number: A number with decimals
  • Boolean: Either “true” or “false”
  • Integer: A whole number
  • Interval: An amount of time in seconds, i.e. seconds spent on a step
  • Image: Either a URL of an image, or an image uploaded from your computer
  • Video: Either a URL of a video, or a video uploaded from your computer
  • File: A file uploaded from your computer with one of the supported file formats (pdf, stl, txt, xls, xlsx, doc, docx, step, stp, qif, nc, form, mp4, gif, png, svg, jpeg, jpg)
  • User: A Tulip administrator or operator
  • Datetime: A date + time. Can manually specify a value or save the current date/time from an app
  • Color: A single color defined via colorpicker or hex code.
  • Linked Record: Link records between tables.
  • Machine: Machine variables
  • Station: An existing station on the Tulip instance

Learn more about each data type and its technical details.

Records

Each row in the Table is called a Record. A record automatically includes all the fields that you create.

A record might be:

  • A work order
  • A SKU
  • A lot of ingredients
  • A set of permissions for an operator
  • A list of materials for a product

Unique ID

Each record must have a unique ID value. This allows you to load all the data around an individual record into an app.

The ID is a text value that can include letters and numbers. Trailing and leading whitespace is automatically removed from an ID.

Common IDs include:

  • Operator Badge ID
  • Work Order/SKU number
  • Lot number
  • Product name

Tulip recommends making your ID field a unique identifier of real-world artifacts, such as the Batch or Equipment ID.

You can either add records to the table directly in the table editor or in an app that is connected to the table.

Learn how to edit a table from an app.

Set up a table

To access Tables, click the Apps tab and select Tables.

You can either create a table in the top right of the screen or archive one using the trashcan icon next to the corresponding table. You can also view the list of apps referencing each table and navigate to them directly from this page.

image.png

  1. Click + Create table
  2. Add a name and a description then click Create.

Add Fields for all the data that you want to track. A field is like an individual column in a spreadsheet.

  1. To create a new field, click + to the right of the last field in the table. You can also add a field by clicking the arrow on one of the fields and then either Insert Left or Insert Right.

Screen Shot 2022-10-05 at 10.28.06 AM.png

  1. Select a field type.

  2. Add a label, then click Save.

Edit a table

To edit a field by click the arrow next to the field name and select Edit field or Edit description.

To remove a field from the table, select Archive field.

Screen Shot 2022-10-05 at 10.28.06 AM.png

The information icon next to the table name provides information including the number of fields in this table.

Screen Shot 2022-10-05 at 10.41.36 AM.png

The ID field is the only required field when you create a new record.

To edit a record, click on it in the table.

The ID column position is locked in place to allow for easy viewing and editing records. The header row also locks as you scroll down the table.

Delete a record

There are multiple ways to delete records in a table:

  1. Right-click the record and select Delete Record.
  2. Left-click the record and click Delete.
  3. Use the Delete Record trigger Action to delete records dynamically in an app.

Export data from a table

There are multiple ways to export table data:

  1. To export all records and fields to a CSV, click the Export button at the top of the table.

  2. When a table record is loaded into an app, the fields of that table record are stored with the app completion. To see the values in a table record when a specific app was completed, export the app data to a CSV.

View record metadata

To see the datetime that each Record was created and updated, click the three-dot menu and toggle View Metadata Fields.

You will see the following columns in the table:

  • Date created
  • Date updated

GXP customers can see the unique ID of each field in the table upon hovering over the Information icon on each field.

Contact your Tulip account representative if you are interested in enabling this feature on your account.

Text wrap records

From the three-dot menu, toggle Turn on text wrap to wrap text to a new line.

Example before text wrap:

Example after text wrap:

Archive a table

There are multiple ways to archive a table:

  1. Click on the Archive icon on the tables page.

screenshot_with_arrow (2).png

  1. From a specific table, click the three-dot menu and select Archive.
    Archive table from individual table view.png

Further reading


Did you find what you were looking for?

You can also head to community.tulip.co to post your question or see if others have solved a similar topic!