Skip to main content
Version: 2027 R1

Data grid

The Data grid attribute displays values from a data source in the form of a table. Values in table columns can be presented as clickable links.

Properties​

Properties section (Data sources, Columns) of the Data grid attribute configuration

Properties section (Appearance, Sorting and Paging, Data Export, Behavior) of the Data grid attribute configuration

1. Data sources​

  • Data source – lets you specify the source of the values displayed by the attribute.
  • Use additional filters – a switch that lets you narrow the results returned from the data source.
  • Override data source sort – a switch that lets you replace the sorting configured in the data source; consecutive sort levels (Column name, Sort type) are added with the Add button. See the Person or group form field for details.
  • Test – opens the Test window, where you can check the results returned by the data source with the current configuration.

The Use additional filters, Override data source sort, and Test options are available once a data source is selected.

2. Columns​

The Columns table lets you configure which columns from the data source are displayed in the attribute – each row corresponds to one column. New rows are added with the Add data source column button and removed with the trash icon next to a row. Each row contains the following options:

  • Column – lets you pick a column returned from the data source,

  • Display name – the name displayed on the form,

  • Summation type – lets you show the sum or the average of the column's values in the summing row. The column appears in the table once Display summing row is checked in the Appearance group:

    OptionDescription
    NoneThe column is not included in the summing row (default value)
    SumThe summing row shows the sum of the column's values
    AverageThe summing row shows the average of the column's values
  • Show as link – checking this option in a row activates the Edit hyperlink icon – the configuration available after clicking it is not yet available,

  • Encode unsafe HTML tags – lets you specify whether unsafe HTML tags (ones that allow running JavaScript code) are removed or permitted.

3. Appearance​

  • Show attribute name – displays the attribute name set in the basic configuration.
  • Show attribute description – displays the attribute description below its name.
  • Show column names – displays the name set in the Display name field in the column header – if that field is empty, the column name returned from the data source is displayed instead.
  • Display summing row – displays a row summing the values of columns for which a Summation type has been set.

4. Sorting and Paging​

  • Allow sorting data – enables sorting the table's contents.
  • Paging – a switch that lets you specify whether results are displayed across multiple pages.
  • Number of items per page – lets you specify how many items are displayed on a single page.

5. Data Export​

  • Allow exporting to Excel spreadsheet – enables exporting the attribute's contents to an Excel spreadsheet.
caution

For performance reasons, a maximum of 1000 rows can be exported to an Excel spreadsheet.

info

Additional information on exporting a data grid's contents to an Excel spreadsheet is available in this article on the technical blog.

6. Behavior​

  • Load on demand – when checked, the grid is not loaded by default and only loads after clicking the button located next to it.
  • Allow empty tags in data source – checking this option allows the system to use variables that return an empty value. If unchecked and a tag used in the query returns an empty value, the records in the attribute will not be displayed on the editable form.

Usage example​

An example data grid displayed on a form

Values in table columns can be presented as clickable links – the returned value simply needs the right format:

  • a value in the form link:<address>, e.g. link:http://www.webcon.pl, displays a link redirecting to the given address,
  • the displayname parameter sets the text displayed in place of the link, e.g. link:http://www.webcon.pl;displayname:WEBCON shows a link with the text "WEBCON",
  • the target:_self parameter opens the link in the same window,
  • it is possible to run a JavaScript script using the onclick:<script> parameter,
  • several links can be combined in a single value, all opening in the same window.
info

Additional information on using the Data grid attribute is available in this article on the technical blog.