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

PropertyDescriptionValuesMandatory
typeType of displayed attribute. See supported type values.stringYes
valueValue type.stringYes
bulkEditableEnables 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.booleanNo
clearNewLineSpecifies whether values are separated into multiple lines (e.g., each label will have its own line). Available only for attributeTypeKey and externalKey type values.booleanNo
filterConditions 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.jsonNo
isHTMLDetermines whether value is shown with HTML tags.booleanNo
maxLengthMaximum number of characters that is shown in a field.numberNo
minWidthMinimum width of a column. When defined, value must be within the range of 100 to 500.integerNo
titleTranslation 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.stringNo
valueTypeRenders 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.stringNo
tooltipKeyTranslation key of the tooltip that appears when hovering over the property. Define in translations to specify how the text is displayed in the UI.stringNo

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 propertyDescriptionMandatory
objectNameText of the link. Items without it are not shown.Yes
objectIdID of the object the link opens. Without it, the name is shown as plain text.No
spaceIdID of the space of the object.No
applicationIdID of the application of the object.No
objectTypeIdID 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 valueType together with filter on the same column, or using a value other than objectLinks, 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 valueType in extraRequestData.

Supported type values

TypeDescription
attributeTypeKeyThe column contains values of the specified attribute type.
customActionButtonAdds a clickable button that triggers a POST request. For more information, see customActionButton configuration.
customActionSelectBoxAdds a dropdown selector backed by a codelist or manually defined values. For more information, see customActionSelectBox configuration.
definedKeyPredefined attributes such as object name, workflow status, or last edit timestamp. For more information, see supported definedKey values.
externalKeyThe column contains values from an external data source defined when the API endpoint is /api/sql-external/table.
relationTypeKeyThe column contains objects related via the specified relation type.
userRelationTypeKeyThe column contains users related to the object via the specified user relation type.

Supported definedKey values

ValueDescription
accessedTimeTimestamp when objects were last visited.
applicationNameNames of the applications where the objects are.
attributeNameNames of the attributes the recorded addresses were found in. Available only for the link check API (/api/link-check/overview-filter).
commentText of the comment. Available only for the comments API (/api/mr-comment/customizable-overview-filter).
createdTimestamp when the comment was created. Available only for the comments API (/api/mr-comment/customizable-overview-filter).
creatorNameNames of the object creators.
isMentionedYes 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).
isReferencedDetermines whether the addresses are still present in the object texts. Available only for the link check API (/api/link-check/overview-filter).
lastChangeTimestamp when objects were last changed.
lastCheckedTimestamp when the addresses were last verified. Available only for the link check API (/api/link-check/overview-filter).
numberOfFavouritesNumber of users who favorited the objects.
numberOfRelationsNumber of relations the objects have.
objectKarmaTotal count of likes and dislikes for the objects.
objectNameNames of the objects.
objectNameWithNumberingNames of the objects including their position number in the hierarchy.
objectPathObject paths (breadcrumbs).
objectTypeNameObject type names.
pathObject paths.
spaceNameNames of the spaces where the objects are.
stateNameResults of the last verification of the addresses. Available only for the link check API (/api/link-check/overview-filter).
statusNameWorkflow statuses of the objects.
updaterNameNames of the users who last updated the objects.
urlThe recorded addresses. Available only for the link check API (/api/link-check/overview-filter).
userRelationTypeKeyNames of users with the specified user relation type to the objects.
viewsAllTimeTotal visits to the objects. Each page load counts as one visit.
viewsIn1MTotal visits in the past one-month period. Each page load counts as one visit.