I need to call the ExportToExcel function on a custom button
I have created a button that will do the same thing as "Export to Excel" and I need to call the same function. But I couldn't identify what the function is, if you can help me with what function to call.
Like
The function is named "exportToExcel" and implemented in BaseDataView. If you add a button to the parentName "Detail" and propertyName "tools", then add the click as: "click": {"bindTo": "exportToExcel"}. It will trigger the export to excel just as if it was selected from the actions menu.
Note, this button would need to be added to the detail schema (not the page). It would look something like this:
{ "operation": "insert", "parentName": "Detail", "propertyName": "tools", "name": "ExportToExcelButton", "values": { "itemType": Terrasoft.ViewItemType.BUTTON, "caption": "Export to Excel", "click": {"bindTo": "exportToExcel"} } }
Ryan
The function is named "exportToExcel" and implemented in BaseDataView. If you add a button to the parentName "Detail" and propertyName "tools", then add the click as: "click": {"bindTo": "exportToExcel"}. It will trigger the export to excel just as if it was selected from the actions menu.
Note, this button would need to be added to the detail schema (not the page). It would look something like this:
{ "operation": "insert", "parentName": "Detail", "propertyName": "tools", "name": "ExportToExcelButton", "values": { "itemType": Terrasoft.ViewItemType.BUTTON, "caption": "Export to Excel", "click": {"bindTo": "exportToExcel"} } }
Ryan