Skip to main content

Creating tables

Overview

Tables are the foundational building blocks in which all Cinchy data is stored. A table is made up of at least one column, which can contain any number of data rows needed for your use case.

Builders are able to create tables two ways:

Create a table from scratch

You can create a table from scratch using the Cinchy UI.

  1. Navigate to the Cinchy homepage. In the upper left-hand corner, click on Create to get started.

Image 1: Step 1, Getting Started

  1. Select either a Standard or a Spatial Table.
  • Spatial Table: A spatial table allows you to create geography and geometry column types, as well as geospatial indexes. You won't be able to create partitions on a spatial table.
  • Standard Table: You can't create geography or geometry columns in a standard table.
info

You can't convert from one type of table to another. If you start with a standard table and want to include geospatial columns at a later date, you will either have to recreate the table or link to a spatial table.

info

Any existing tables created prior to v4.19.0 are standard tables.

Image 2: Step 2, select either a Standard or Spatial Table

  1. Select From Scratch.

Image 3: Step 3, Select "From Scratch"

  1. A new page will open with the Table Info tab. Input the following:

NameDescriptionExample
Table NameMandatory. A name for your table. This must be unique to the domain that you select.Tasks
IconYou can pick an icon and colour to differentiate your table on the home screen.
DomainMandatory. Select the domain that this table will reside under. If you are have administrative privileges, you can also create new domains from this screen.Product
DescriptionYou can give your table a description. This will be displayed on the Cinchy homepage.A table to track Product team tasks.

Image 4: Step 4, Adding table info.

  1. Select the Columns tab from the left-hand navigation bar and input the following:

NameDescriptionExample
Column NameMandatory. A name for your table. This must be unique to the table.Task
Data TypeMandatory. Each column on a table is associated with a specific data type, as related to the content of the column. You can review the full list of column data types here.Text
DescriptionYou can give your column a description.The name of the product task.
Data Security ClassificationAn optional parameter that lets you set a security level of the column's contents. You can review the full list of classifications here.Internal
Enable Text FormattingChecking this box will enable rich text editing for use in Cinchy Forms.
Advanced SettingsAdditional column settings can be configured here. For a full list, see here.

info

Every table in Cinchy must have at least 1 column.

Image 5: Step 5, defining your column

  1. The Change Notifications tab is used to subscribe to data changes on the table.

    • The Cinchy CDC will trigger on things like adding, updating, or deleting a cell/group of cells.
    • The Cinchy CDC will trigger on row approvals, but not individual cell approvals.
    • This is often used in tandem with a data sync by configuring the Cinchy CDC/Event Broker as a connection source.
  2. Click Save to finalize your table.

  3. You may return to change the structure of the existing table (such as rename columns, add new columns, change data type) by clicking on the Design Table button on the left-hand navigation.

Image 8: Step 89, changing an existing table structure

Import a CSV to create a table

  1. Navigate to the Cinchy homepage. In the upper left-hand corner, click on Create to get started.

Image 9: Step 1, Getting Started

  1. Select either a Standard or a Spatial Table.
  • Spatial Table: A spatial table allows you to create geography and geometry column types, as well as geospatial indexes. You won't be able to create partitions on a spatial table.
  • Standard Table: You can't create geography or geometry columns in a standard table.
info

You can't convert from one type to another and will have to either recreate your table or link to another table with geospatial columns.

info

Any existing tables created before installing Cinchy Platform v4.19.0 are standard tables.

Image 10: Step 2, select either a Standard or Spatial Table

  1. Select Import a CSV.

Image 11: Step 3, Select "Import a CSV"

  1. Enter the following information:
  • Domain: Select the domain that you table will reside under. If you are have administrative privileges, you can also create new domains from this screen.
  • File: To create the table, you must upload a .csv file.
caution

The column names in your .csv file must not conflict with System Columns.

  1. When creating a table via Import a CSV, some settings will be set by default:
  • Default Table Name: The name of the file will be used as the name of the table (a number will be appended if there is a duplicate - ex. uploading Teams.csv will create a table named Teams 1, then Team 2 if uploaded again). You can always rename the table after it has been created.
  • Default Table Icon: The icon defaults to a green paintbrush.
  • Default Column Types: Columns by default will be created as a text field, with a maximum length of the longest value in the column. If a column has only numeric values in it, it will be created as a numeric column.
  1. To update these settings, navigate to the Design Table tab on the left navigation bar.

Image 12: Step 6, Design Table tab

Table views

When you first create a table, a default view called All Data will be created for you, which you can find on the left navigation bar under Manage Data.

Image 13: Step 1: The All Data view

You can create also create additional views.

  1. Click on on "+Create View".

Image 14: Step 2, Select "Create View"

  1. You may chose to create a view From Scratch or by Copying an Existing view.

Image 15: Step 3, Creating a View

From Scratch:

  1. Select From Scratch.

  2. The Columns tab will open. Create a Name for your view.

  3. If you'd like this to become the default view, toggle the default setting to On.

  4. Select the column(s) that you want to be visible in this view. You may rearrange the column order using drag and drop.

Image 17: Step 4, Selecting Columns

  1. Click on the Sort tab in the left navigation bar.

Image 18: Step 5, Sorting

  1. Use this screen to select which columns you'd like to sort your data by, and in which order. You may rearrange the columns using drag and drop.

Image 19: Step 6, Sorting your view

  1. Click on the Filter tab in the left navigation bar. Here, you may use query language to focus your view.

Image 20: Step 7, Using the Filter tab

  1. Click on the Permission tab in the left navigation bar. Here, you may set permissions for who can use this view. By default, it's set to All Users.

Image 21: Step 8, setting permissions.

  1. Select Save to finalize your view.

From Existing

  1. Select From Existing.
  2. Select which view you would like to copy.

Image 22: Step 2, Importing a view

Updating a view

  1. To update any view, including the Add Data view, click on the pencil icon next to the view's name under Manage Data.

Image 23: Step 1, Updating a View

Bookmarks and the Homepage

Once you create a table, it will be added to your bookmarks by default. Other users (or if you un-star the table from your bookmarks) will see it in the Homepage if they have permissions to.