...
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:
Code Block language js canvas.app.exportHandler.exportData({"exportType":"PDF","viewId":"CT_LOAN_SUMMARY_VIEW","widgetId":"CT_LOAN_SUMMARY_WGT"});
Tip title Note By calling the exportData API, you can only export the data of the grid widgets alone.