formData.grids
(FintechOS Studio 20.1.3 and later)
Returns details about the views displayed on the form.
Return Value
Returns an array of JSON objects, each containing details about a view that is displayed on the form.
Examples
In this example:
- We create an event handler that triggers when we click a custom button on our form called export.
- We run the totalCount method of the formData.grids property for the first view displayed on the form (whose index number is 0) to retrieve the number of records in the view and display a notification on screen. For details on how to display notification messages, see ebs.showMessage.
- We run the exportToExcel method of the formData.grids property for the same view to export the data to Excel.
Copy
$('#export').on('click', function (event) {
ebs.showMessage('Exporting ' + formData.grids[0].totalCount() + ' records.');
formData.grids[0].exportToExcel()
});