Card Report
7 minutes to readA Card Report displays the records in a card grid of multiple rows and columns. Card Reports work best for showing small snippets of data in a flexible card format. For instance, as a sales manager, you can view all your sales prospects.
Steps to create Card Reports
- Select the fields you want to include in the report:
- In the upper panel, click the Add elements button.
- Select Reports → Card.
- In the Data source panel, select a table or view that will be the primary data source for your DataPart.
- From the Available fields panel, select the fields you want to use in your app. To do that, click the field or drag and drop it into the Selected fields section. You can bulk-add all the fields by clicking the Select all button.
- Click Next.
- Configure the report fields:
- Optional: If you want to add customizable HTML content for descriptive text, links, or graphics to the AppPage, in the Elements panel, click Add > HTML block and edit the code.
You can format the content in the visual editor or enter your custom code. HTML block supports data source parameters, authenticated user fields, system parameters, and app parameters. - In the Elements panel, select a field that should be displayed in a report. You can also rearrange the order of fields using drag and drop.
- Provide a label for a field column.
- Select Create.
- Optional: If you want to add customizable HTML content for descriptive text, links, or graphics to the AppPage, in the Elements panel, click Add > HTML block and edit the code.
After creating a Card Report, you can modify it by applying additional configurations. Learn more.
Note: You can restrict the visibility of specific records in a report by managing role permissions. Learn more.
Configuring additional options for a Card Report
After creating a Card Report, in the right panel, you can configure additional options of a DataPart. The following configurations are available:
DataPart configuration
Select DataPart configuration to edit the data source and its fields. This option may be helpful when you want to add or remove fields from a data source or change a data source to a different table or view.
Data filters
Select Data filters to set up criteria for DataPart filtering. Learn more.
In the Limits records to section, you can specify the number of records matching the filtering criteria that should be displayed in a report.
Interactive controls
Select Interactive controls to enable additional actions on records, such as inline and bulk delete or a redirect to an AppPage:
- Toolbar controls allow users with adequate access permissions to use toolbar buttons to interact with the data:
- Delete erases selected records from the database. You can choose to display a confirmation message in a dialog window or allow users to delete records without any confirmation.
- Add allows you to add a custom action: Go to AppPage, which redirects to a specific AppPage in the same segment. For example, in a list of records, you can create a button that redirects to a Submission Form to add a new record.
- Record controls allow users with adequate access permissions to run operations on individual records after hovering over a record and clicking a button or choosing an option from an expandable menu (when more than one action is available):
- Delete erases a specific record from the database. You can choose to display a confirmation message in a dialog window or allow users to delete records without any confirmation.
- Add allows you to add a custom action:
- Go to AppPage redirects to a specific page in your app.
For example, you can redirect the user to a custom destination details page or update form of the selected record with appropriate filtering. Parameters are automatically passed between the report and destination page, and they are available in the filtering section of the destination page. - Go to URL redirects to a custom URL.
For example, you can use this option to build navigation between AppPages deployed on your own website.
- Go to AppPage redirects to a specific page in your app.
Display
Use the Display Options section to configure the sort order of the results, number of records per page and displaying record index.
Sort order
Sort order defines how records from data source should appear in Card Report DataPart. The following options are available:
- Random – records are displayed in random order.
- Custom – records are displayed in the set order.
To customize the sort order, select Custom and click the pen icon. Then, click the fields in the Available fields section or drag and drop them into the Sorting fields section.
Interactive sorting by
Interactive sorting by allows the app users to define how records from data source should appear in Tabular Report DataPart. The following options are available:
- None – disables interactive sorting.
- Dropdown – predefined choice of sorting presented in a dropdown at the top of the report.
To configure dropdown sorting, select Dropdown to open the configuration options.
In the General tab:
- Define the label and placeholder text for a dropdown option.
- Select the Add new sorting field button to add a sorting field.
- Specify the sorting direction and the label for a dropdown option.
- Select Finish.
In the Layout tab:
- Define the dropdown size:
-
- Auto – defines the width of a column by the size of the content inside a field,
- Fixed – allows for setting the precise size of the column field width in pixels [1-9999px]. The content of a field will not be visible if it exceeds the set size.
- Define the label position: left, top, float, or no label.
- Select Finish.
Records per page
With Records per page, you can specify the number of records that should be displayed on each page. You can display between 1 and 1000 records per page.
You can also show the number of records at the bottom of a report with Show record count.
Cards grid
With the Cards grid option, you can set the number of columns displayed in a report. There are two options available: Auto and Fixed.
For the Auto option, the number of columns is calculated based on the minimal card size width and the size of the whole DataPart set in the canvas. It means that the size of cards adjusts to the available space in a DataPart.
For the Fixed option, the number of columns is always the same and the cards adjust to the size of the whole DataPart.
Note: The card width input must be between 80px and 9999px.
Sorting options
If you want to sort data by default, in the Default sorting section, select one of the options:
- To sort the report based on field values, select By field, and then add and arrange the sorting fields.
- To sort the report in an arbitrary manner, select Random.
If you want to allow app users to sort the report based on field values, in the Sorting options for app users section, turn on the Sort via dropdown toggle to display a dropdown with a list of fields available for sorting.
By default, all the fields included in the report and the Default sorting option are displayed in the dropdown. You can customize the dropdown list by adding, removing, and rearranging the options.