This is the Baserow connector for Convertigo. Use this connector to exchange data with Baserow databases.
This library uses the following symbols
Symbol | Usage |
---|---|
lib_baserow.server | the host name of the baserow server |
lib_baserow.port | the port baserow server, set to 443 for https, to 80 for http |
lib_baserow.https | set to true for https, to false otherwise |
lib_baserow.password.secret | The baserow admin password |
lib_baserow.adminuser | The baserow admin user email. |
For more technical informations : documentation
- Installation
- Sequences
- AdminLogin
- AdminUserCreate
- AdminUserDelete
- ApplicationsList
- AssetFileUpload
- ClearTableIdCache
- DatabaseTokenCreate
- DatabaseTokenDelete
- DatabaseTokenList
- FieldsList
- FieldsListApiKey
- forms_AddRow
- formssource_GetFieldValues
- formssource_GetSelectData
- formssource_GetTableData
- FSExecuteView
- FSPullAndPushTable
- GroupsList
- TableBulkExportToCSV
- TableBulkExportWaitFInished
- TableBulkImportFromCSV
- TableBulkUpdateFromCSV
- TableCreateRow
- TableCreateRowApiKey
- TableCreateRows
- TableCreateRowsApiKey
- TableCreateView
- TableCreateViewFilter
- TableDeleteAllRows
- TableDeleteRow
- TableDeleteView
- TableGetData
- TableGetDataApiKey
- TableGetRowByIdApiKey
- TableGetViews
- TableReadRow
- TableUpdateRowApiKey
- TokenGetOrRefresh
- Mobile Library
-
In your Convertigo Studio use
File->Import->Convertigo->Convertigo Project
and hit theNext
button -
In the dialog
Project remote URL
field, paste the text below:Usage Click the copy button To contribute lib_BaseRow=https://github.com/convertigo/c8oprj-lib-baserow.git:branch=master
To simply use lib_BaseRow=https://github.com/convertigo/c8oprj-lib-baserow/archive/master.zip
-
Click the
Finish
button. This will automatically import the lib_BaseRow project
Establishes a session with Baserow. Must be called before any other API
variables
name | comment |
---|---|
The Base row admin email | |
password | The baserow admin password |
Create a user
variables
name | comment |
---|---|
language | |
name | |
password |
Delete a User
variables
name | comment |
---|---|
user_id | The id of the user to delete |
Lists all applications (databases) in baserow
Uploads a file asset, the returned link can be used to be set as a value of a 'file' Type cell
variables
name | comment |
---|---|
apikey | The API Key |
file | A File variable holding the path to the file to be uploaded |
Create a Token to acess databases within a group. This token will hold permissions to specific databases in the group
variables
name | comment |
---|---|
group_id | The ID of the group holding the databases to get a token to (Unique) |
name | Token Name |
Delete a previously created Token by providing its id
variables
name | comment |
---|---|
token_id | Deletes the token related to the provided value. |
Create a Token to acess databases within a group. This token will hold permissions to specific databases in the group
Lists all the fields in a baserow table
variables
name | comment |
---|---|
table_id | Returns only the fields of the table related to the provided value. |
Lists all the fields in a baserow table
variables
name | comment |
---|---|
apikey | |
table_id | Returns only the fields of the table related to the provided value. |
Add a row to a Baserow table. Each column of the table must have the same name as the technicalID of a field on the form. Forms fields can be any type, but usually select lists are mapped on Baserow Linked Columns.
variables
name | comment |
---|---|
doc | |
forms_config | Creates a row in a table with a given configuration |
originalDoc |
Get all possible values for a given field to feed a Select
variables
name | comment |
---|---|
forms_config | Fills the select component from data with a given configuration. The first column will be the displayed item in the select, the second column will be the value of this item |
Get data from a Baserow table as options for a Select component. You will be able to choose the Baserow columns for the names to be displayed in the select dropdown list and the column for the values of each name.
variables
name | comment |
---|---|
forms_config | Fills the select component from data with a given configuration. The first column will be the displayed item in the select, the second column will be the value of this item |
forms_filter | Filters |
forms_Filter | A custom filter following JSON styntax |
model | If true, just return one line of data so that No Code studio can compte the table model |
Get data from a Baserow table for a data grid. Each column of the Baserow table will be displayed as the same column in the data grid
variables
name | comment |
---|---|
forms_config | Returns the rows of the table with a given configuration |
forms_tableFilter | Filters |
model | If true, just return one line of data so that No Code studio can compte the table model |
Execute a FullSync View
variables
name | comment |
---|---|
_use_ddoc | |
_use_descending | |
_use_endkey | |
_use_group | |
_use_group_level | |
_use_key | |
_use_limit | |
_use_reduce | |
_use_startkey | |
_use_view |
Push a BaserowTable to FullSync for offline access
variables
name | comment |
---|---|
chunkSize | |
table_id | The table id to create and start an export job for |
Lists all Groups for the current user
Exports a Table to CSV.. Export status must me monitored with the TableBulkExportWaitFinished sequence
variables
name | comment |
---|---|
table_id | The table id to create and start an export job for |
Wait for an export job to be finished. Will return the URL to the exported data
variables
name | comment |
---|---|
job_id | The job id to lookup information about. |
Uploads a CSV to a table. Each CSV column will be mapped to the existing table Column. If there is more columns in the CSV than in the table additional columns will not be mapped.
variables
name | comment |
---|---|
chunkSize | The Number of lines imported for each loop |
files | List of CSV files to be imported in the table . Can be only one |
fileSeparator | The column seperatorr ( , or ; ) |
firstLineColumn | Set to true if the first CSV lines represents columns names |
quoteChar | The character to be used to identify strings ion the CSV file (Usually " but can be ') |
table_id | The table ID (Can also be a generic 'Workspace~>Base~>Table' definition) |
Updates or inserts data in a Table from a CSV file. Given a list of column names, the sequence will update all lines from the CSV where the column names will be considered as unique ids. If CSV file contains lines not matching the columns names, they will be added to the table.
variables
name | comment |
---|---|
chunkSize | The Number of lines imported for each loop |
files | List of CSV files to be imported in the table . Can be only one |
fileSeparator | The column seperatorr ( , or ; ) |
firstLineColumn | Set to true if the first CSV lines represents columns names |
quoteChar | The character to be used to identify strings ion the CSV file (Usually " but can be ') |
table_id | The table ID (Can also be a generic 'Workspace~>Base~>Table' definition) |
uniqueFields | List of fields name representing an unique line in the CSV identifying the line to be updated in the table. (Can be only one field) |
Creates a row in a table
variables
name | comment |
---|---|
before | If provided then the newly created row will be positioned before the row with the provided id. |
data | A JSON object with each field name and value |
table_id | Insert row in this table_id |
Creates a row in a table using an apikey instead of credentials
variables
name | comment |
---|---|
apikey | |
before | If provided then the newly created row will be positioned before the row with the provided id. |
data | A JSON object with each field name and value |
table_id | Insert row in this table_id |
Creates a row in a table
variables
name | comment |
---|---|
data | A JSON object with each field name and value |
table_id | Insert row in this table_id |
Creates a row in a table
variables
name | comment |
---|---|
apikey | |
data | A JSON object with each field name and value, such as: {"items" : [{"field1":"value1", "field2": "value2"}, {"field1":"value1B", "field2": "value2B"}]} |
table_id | Insert row in this table_id |
user_field_names | A flag query parameter which if provided this endpoint will expect and return the user specified field names instead of internal Baserow field names (field_123 etc). |
Creates a new view for the table related
variables
name | comment |
---|---|
apikey | |
data | |
table_id | Insert row in this table_id |
Updates the existing filter if the authorized user has access to the related database's group.
variables
name | comment |
---|---|
apikey | |
data | |
table_id | Returns only the fields of the table related to the provided value. |
view_id | Creates a filter for the view related to the provided value. |
Deletes all rows from a table
variables
name | comment |
---|---|
chunkSize | The Number of lines deleted for each loop |
table_id | The table ID (Can also be a generic 'Workspace~>Base~>Table' definition) |
deletes a row from a from a given table
variables
name | comment |
---|---|
row_id | Deletes the row related to the value. |
table_id | Returns the rows of the table related to the provided value. |
Deletes the existing view if the authorized user has access to the related database's group. Note that all the related settings of the view are going to be deleted also. The data stays intact after deleting the view because this is related to the table and not the view.
variables
name | comment |
---|---|
apikey | |
view_id | Deletes the view related to the provided value. |
Gets data from a given table
variables
name | comment | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
describeStructure | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
exclude | All the fields are included in the response by default. You can select a subset of fields by providing the exclude query parameter. If you for example provide the following GET parameter `exclude=field_1,field_2` then the fields with id `1` and id `2` are going to be excluded from the selection and response. If the `user_field_names` parameter is provided then instead exclude should be a comma separated list of the actual field names. For field names with commas you should surround the name with quotes like so: `exclude=My Field,"Field With , "`. A backslash can be used to escape field names which contain double quotes like so: `exclude=My Field,Field with \"`. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
filterExpression | A JSON Structure representing the filters in the form :
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
include_fields | All the fields are included in the response by default. You can select a subset of fields by providing the include query parameter. If you for example provide the following GET parameter `include=field_1,field_2` then only the fields withid `1` and id `2` are going to be selected and included in the response. If the `user_field_names` parameter is provided then instead include should be a comma separated list of the actual field names. For field names with commas you should surround the name with quotes like so: `include=My Field,"Field With , "`. A backslash can be used to escape field names which contain double quotes like so: `include=My Field,Field with \"`. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
order_by | Optionally the rows can be ordered by provided field ids separated by comma. By default a field is ordered in ascending (A-Z) order, but by prepending the field with a '-' it can be ordered descending (Z-A). If the `user_field_names` parameter is provided then instead order_by should be a comma separated list of the actual field names. For field names with commas you should surround the name with quotes like so: `order_by=My Field,"Field With , "`. A backslash can be used to escape field names which contain double quotes like so: `order_by=My Field,Field with \"`. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
page | Defines which page of rows should be returned. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
search | If provided only rows with data that matches the search query are going to be returned. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
size | Defines how many rows should be returned per page. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
table_id | Returns the rows of the table related to the provided value. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
view_id | Includes all the filters and sorts of the provided view. |
Gets data from a given table
variables
name | comment | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
apikey | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
exclude | All the fields are included in the response by default. You can select a subset of fields by providing the exclude query parameter. If you for example provide the following GET parameter `exclude=field_1,field_2` then the fields with id `1` and id `2` are going to be excluded from the selection and response. If the `user_field_names` parameter is provided then instead exclude should be a comma separated list of the actual field names. For field names with commas you should surround the name with quotes like so: `exclude=My Field,"Field With , "`. A backslash can be used to escape field names which contain double quotes like so: `exclude=My Field,Field with \"`. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
filterExpression | A JSON Structure representing the filters in the form :
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
include_fields | All the fields are included in the response by default. You can select a subset of fields by providing the include query parameter. If you for example provide the following GET parameter `include=field_1,field_2` then only the fields withid `1` and id `2` are going to be selected and included in the response. If the `user_field_names` parameter is provided then instead include should be a comma separated list of the actual field names. For field names with commas you should surround the name with quotes like so: `include=My Field,"Field With , "`. A backslash can be used to escape field names which contain double quotes like so: `include=My Field,Field with \"`. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
order_by | Optionally the rows can be ordered by provided field ids separated by comma. By default a field is ordered in ascending (A-Z) order, but by prepending the field with a '-' it can be ordered descending (Z-A). If the `user_field_names` parameter is provided then instead order_by should be a comma separated list of the actual field names. For field names with commas you should surround the name with quotes like so: `order_by=My Field,"Field With , "`. A backslash can be used to escape field names which contain double quotes like so: `order_by=My Field,Field with \"`. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
page | Defines which page of rows should be returned. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
search | If provided only rows with data that matches the search query are going to be returned. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
size | Defines how many rows should be returned per page. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
table_id | Returns the rows of the table related to the provided value. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
view_id | Includes all the filters and sorts of the provided view. |
Gets data from a given table
variables
name | comment |
---|---|
apikey | |
row_id | Returns the row related the provided value. |
table_id | Returns the rows of the table related to the provided value. |
List all views for the table related
variables
name | comment |
---|---|
apikey | |
include | A comma separated list of extra attributes to include on each view in the response. The supported attributes are filters, sortings and decorations. For example include=filters,sortings will add the attributes filters and sortings to every returned view, containing a list of the views filters and sortings respectively. |
limit | The maximum amount of views that must be returned. This endpoint doesn't support pagination, but if you for example just need to fetch the first view, you can do that by setting a limit. There isn't a limit by default. |
table_id | Returns only views of the table related to the provided value. |
type | Optionally filter on the view type. If provided, only views of that type will be returned. |
Reads a row from a from a given table
variables
name | comment |
---|---|
row_id | Deletes the row related to the value. |
table_id | Returns the rows of the table related to the provided value. |
Updates a row in a table ising apikey instead of credentials
variables
name | comment |
---|---|
apikey | |
data | |
row_id | Insert row in this table_id |
table_id | Insert row in this table_id |
Gets a token or refresh it if the token is expired the Token will be placed in the current user session
Describes the mobile application global properties
Provides an infinite paginated Grid that can be fed by data from a BaseRow No Code database.
variables
name | comment |
---|---|
accessibility | boolean: true (default) or false |
ariaLabel | |
autoSizeColumns | |
class | One of the themes provided here :
https://www.ag-grid.com/javascript-grid-themes-provided/ Also be shure to add the theme in the Theme object as : @import "../../node_modules/ag-grid-community/dist/styles/ag-theme-balham-dark/sass/ag-theme-balham-dark.scss"; |
defaultColDef | default is {hide: false, editable: true, sortable: true, resizable: true, filter: true, checkboxSelection: false, singleClickEdit: false} |
Filters | An JSON object containing the filter to apply to a BaseRow filtered view where each filter is the exact name of the filter variable attached to a filtered list sequence :
{ filter<And/Or><Column Name 1><Op>: <filter to apply N° 1>, filter<And/Or><Column Name 2><Op>: <filter to apply N° 2> } for example for Sequence GTFSPlacesSmallAirportsList : NB: Be sure to use simple quotes in your JSON structure for strings { filterAndTypeContains: 'small_airport', filterAndIso_countryEqual: 'FR' } Will fill the grid with all records where column Type Contains to small_airports and column Type Contains to Iso_countryEqual equals FR. Filter names will be imported from the No Code Database view. |
height | height is 'auto' or value in % or px |
id | An Optional ID |
ListSequenceName | The BaseRow CRUD "List" sequence name imported from the NoCode View. For example :
MyProject.Hotel_BookingsRoomsList Where MyProject is the name of the project holding the Sequence and Hotel_BookingsRoomsList is the name of the Sequence in this project. |
overlayLoadingTemplate | |
overlayNoRowsTemplate | |
paginationPageSize | integer: 10 by default |
rowDeselection | boolean: true (default) or false |
rowHeight | Height of the row in pixels as a string |
rowSelection | string: 'single' (default) or 'multiple' |
Search | Will only return data that matches this search whatever the column is |
suppressCellSelection | |
suppressRowClickSelection | |
width | width value in % or px |
wrapperClass | Height of the row in pixels as a string |