Row, Column, Table, View¶
Row¶
Row is an object, use row['colum_name']
to get the value of a specific cell. There are a few special columns:
_id
: The id of the row_creator
: The creator for this row_ctime
: The create time for this row_last_modifier
: The last modifier for this row_mtime
: The last modified time for this row
Different column types have different type of values:
Basic column types:
text
: stringnumber
: numbercheckbox
: booleandate
: string, in format2020-01-01
or2020-01-01 10:00
single-select
: option name, stringlong-text
: markdown stringimage
: array, each element of the array is the URL of imagefile
: array, each element of the array is a file object[{name: string, url: string, size: number, type: 'file'}]
multi-select
: array, each element of the array is an option namecollaborator
: array, each element of the array is a collaborator's emailURL
: stringemail
: stringduration
: string, in formath:mm(1:30)
orh:mm:ss(0:20:30)
rating
: number, indicates a rating
Advanced column types:
formula
: stringgeolocation
: object, in format{province: xxx, city: xxx, district: xxx, detail: xxx}
link
: array, each element of the array is a link nameauto-number
: number, auto increase
About empty value¶
A field is empty in the following situations
- There is no corresponding key in row
- row['colum_name'] is null (None in Python)
- The value of row['colum_name'] is '' (for string type columns)
- The value of row['colum_name'] is {} (null object, for a column of object type)
- The value of row['colum_name'] is [] (empty list, for columns of type list)
Because the value of a cell can be generated by copying and pasting, changing column types, and filling in through scripts, the value displayed as empty on an interface may be in the above situations.
Column¶
A column object has following fields:
key
: The key of the column, stringtype
: The type of the column(long-text, single-select, number, file and so on), stringname
: The name of the column, string
Table¶
A table object has following fields:
_id
: The id of the tablename
: The name of the table, string
View¶
A view object has following fields:
name
: The name of the view, string