Similar to printing, Canvas supports data export of an app or form to an XLS, PDF, CSV or RTF file. Moreover, while exporting charts, Canvas also passes the data that was used for generating the corresponding chart view.
Exported data of grid views | Export Data of Chart |
The Chart view does not support CSV export. |
To export the data of an app by invoking a button or row click event, you can call the exportData API. For detailed information on Canvas JavaScript APIs, refer Canvas JavaScript APIs. The following code snippet serves as a sample reference:
canvas.app.exportHandler.exportData({"exportType":"PDF","viewId":"CT_LOAN_SUMMARY_VIEW","widgetId":"CT_LOAN_SUMMARY_WGT"});
Note
By calling the exportData API, you can export the data of the grid widgets alone.