Grid
- Change the width of a grid dynamically.
- Rearrange or remove the columns of a grid from an application.
- Export the data displayed in a grid to a .csv file. In addition, you can export data from selected columns.
- Sort the data displayed in a grid.
- View the data in a tree structure.
- Scroll till the end of the grid regardless of the number of rows the grid contains.
Grid Settings
Setting | Description |
---|---|
Allow Export | Select this check box if you want to provide an option to application users to export the data in the grid to a .csv file. Note: This option is not available on iOS. |
Tooltips | Select this check box if you want tooltips to appear in the application. |
Flow | Select the query that should be used to retrieve information in the grid. |
Name | Enter the name of the grid column. |
Data | Select this option if you want data in the column to be retrieved from an entity field using a column, and then select the field in the drop-down list box. |
Formula | Select this option if you want data in the column to be displayed based on a formula. For example, if an entity stores the marks scored by students for individual courses, you can create a formula to display the aggregate marks scored by each student. |
Show <number> rows at a time | Identifies the number of rows that should appear by default in the grid. By default, the value in this box is 10. After you enter a value, the following options are available:
|
Using a Grid
- Create an entity named Wiki Manager, add the fields Manager ID and Manager Name, and add the IDs and names of managers.
- Create a Get query named Wiki Get All Managers to get all the records from the Wiki Manager entity.
- Create an entity named Wiki Employee, add the fields Manager ID, Employee ID, and Employee Name, and add the respective details.
- Create a Get query named Wiki Get Employee by Manager ID with settings as specified in the following image:
- Create an application, and add a grid using the page designer.
- In the PAGE DATA section, add the Wiki Get All Managers query, and connect all the fields to the grid.
- Select the Auto submit (as soon as data is available) check box.
- In the Flow box, select Wiki Get All Managers.
- In the Name box, enter Manager Name.
- In the Data box, select the field that stores the names of managers.
- Select Add Field, and then provide values as specified in the following table.
Box Description Name Enter Manager ID. Data Select this option, and then select Wiki Manager in the drop-down list box that appears. Mapping Select Wiki Employee. - Save the application, and preview it. A grid appears, displaying two sections. The first section contains a list of IDs and names of managers. The second section contains a list of employees that report to each manager.