Property description
The columns property defines visible columns in an API table.
Minimal JSON
{
"type": "",
"value": ""
}"columns": [
{
"type": "definedKey",
"value": "objectName"
},
{
"type": "definedKey",
"value": "statusName"
},
{
"type": "definedKey",
"value": "objectTypeName"
},
{
"type": "definedKey",
"value": "applicationName"
},
{
"type": "definedKey",
"value": "path"
},
{
"type": "definedKey",
"value": "lastChange"
}
]Example taken from the core package.
Nested properties
| Property | Description | Values | Mandatory |
|---|---|---|---|
type | Type of displayed attribute. See supported type values. | string | Yes |
value | Value type. | string | Yes |
bulkEditable | Enables the selection multiple rows in a table and bulk editing values in the selected column (e.g., change all selected workflow statuses provided that the user has sufficient permissions). To use this property, make sure bulkEditable is true on the API table level as well. Not available for externalKey type value. | boolean | No |
clearNewLine | Specifies whether values are separated into multiple lines (e.g., each label will have its own line). Available only for attributeTypeKey and externalKey type values. | boolean | No |
filter | Conditions used to limit or refine data selection. For more information, see filter. For more information, see filter configuration. Available for tables with extraRequestData (see api-table) or the externalKey column type. | json | No |
isHTML | Determines whether value is shown with HTML tags. | boolean | No |
maxLength | Maximum number of characters that is shown in a field. | number | No |
minWidth | Minimum width of a column. When defined, value must be within the range of 100 to 500. | integer | No |
title | Translation key of the title. Define the key in translations to specify how the text is displayed in the UI. Unlike the name property, if you use a specific string of text for the title, this text will appear with the package key. For example, Comment Section will be displayed as package_key_comment section. | string | No |
valueType | Renders each cell as links to Dawiso objects. The only supported value is objectLinks. Available only for externalKey columns. Cannot be combined with filter on the same column. See Show object links in a column. | string | No |
tooltipKey | Translation key of the tooltip that appears when hovering over the property. Define in translations to specify how the text is displayed in the UI. | string | No |
Show object links in a column
An externalKey column of an SQL table can show its values as links to Dawiso objects. Set "valueType": "objectLinks" on the column:
{
"type": "externalKey",
"value": "dimension_values",
"title": "Dimension values",
"valueType": "objectLinks"
}
The SQL query returns a JSON array in each cell of the column. Each array item describes one object:
[
{
"objectId": 123,
"objectName": "IC",
"spaceId": 12,
"applicationId": 86,
"objectTypeId": 456
}
]
| Item property | Description | Mandatory |
|---|---|---|
objectName | Text of the link. Items without it are not shown. | Yes |
objectId | ID of the object the link opens. Without it, the name is shown as plain text. | No |
spaceId | ID of the space of the object. | No |
applicationId | ID of the application of the object. | No |
objectTypeId | ID of the object type of the object. | No |
A single object is an array with one item. Links are shown in array order, separated by commas. Clicking a link opens the object detail in the same window. Ctrl or Cmd and click opens it in a new window. If the cell is not a valid JSON array, the cell shows its text unchanged.
Keep the following in mind:
- Sorting and filtering are turned off for the column, because the SQL would sort by the JSON text.
- Setting
valueTypetogether withfilteron the same column, or using a value other thanobjectLinks, is a package validation error. The package does not install. - The SQL view runs under the service identity, so the links are not filtered by user permissions. A user without access to the object lands on the standard no-access page.
- The Excel export writes only the object names, separated by commas. For an export-only column, also declare
valueTypein extraRequestData.
Supported type values
| Type | Description |
|---|---|
attributeTypeKey | The column contains values of the specified attribute type. |
customActionButton | Adds a clickable button that triggers a POST request. For more information, see customActionButton configuration. |
customActionSelectBox | Adds a dropdown selector backed by a codelist or manually defined values. For more information, see customActionSelectBox configuration. |
definedKey | Predefined attributes such as object name, workflow status, or last edit timestamp. For more information, see supported definedKey values. |
externalKey | The column contains values from an external data source defined when the API endpoint is /api/sql-external/table. |
relationTypeKey | The column contains objects related via the specified relation type. |
userRelationTypeKey | The column contains users related to the object via the specified user relation type. |
Supported definedKey values
| Value | Description |
|---|---|
accessedTime | Timestamp when objects were last visited. |
applicationName | Names of the applications where the objects are. |
attributeName | Names of the attributes the recorded addresses were found in. Available only for the link check API (/api/link-check/overview-filter). |
comment | Text of the comment. Available only for the comments API (/api/mr-comment/customizable-overview-filter). |
created | Timestamp when the comment was created. Available only for the comments API (/api/mr-comment/customizable-overview-filter). |
creatorName | Names of the object creators. |
isMentioned | Yes or No value that shows whether the current user is mentioned in the comment, either directly or through a group they belong to. Available only for the comments API (/api/mr-comment/customizable-overview-filter). |
isReferenced | Determines whether the addresses are still present in the object texts. Available only for the link check API (/api/link-check/overview-filter). |
lastChange | Timestamp when objects were last changed. |
lastChecked | Timestamp when the addresses were last verified. Available only for the link check API (/api/link-check/overview-filter). |
numberOfFavourites | Number of users who favorited the objects. |
numberOfRelations | Number of relations the objects have. |
objectKarma | Total count of likes and dislikes for the objects. |
objectName | Names of the objects. |
objectNameWithNumbering | Names of the objects including their position number in the hierarchy. |
objectPath | Object paths (breadcrumbs). |
objectTypeName | Object type names. |
path | Object paths. |
spaceName | Names of the spaces where the objects are. |
stateName | Results of the last verification of the addresses. Available only for the link check API (/api/link-check/overview-filter). |
statusName | Workflow statuses of the objects. |
updaterName | Names of the users who last updated the objects. |
url | The recorded addresses. Available only for the link check API (/api/link-check/overview-filter). |
userRelationTypeKey | Names of users with the specified user relation type to the objects. |
viewsAllTime | Total visits to the objects. Each page load counts as one visit. |
viewsIn1M | Total visits in the past one-month period. Each page load counts as one visit. |