Export to CSV function is not working in the Attribute Table widget when the table is the result of a query from the Query Widget. I tested this in ArcGIS Online.
Here is what I did:
Is it a bug for the Attribute Table widget?
Note: I've posted this in Web AppBuilder Custom Widget space as well, because this happens in both the built-in WAB and WAB Developer Edition, to better understand the cause you need to understand the code which the Custom Widget space deals with. It's hard to decide which space it belongs, it would be good if we can select more than one places when asking a question.
It's a bug.
BUG-000123249 - Exporting an attribute table to a CSV from a Query layer created via the Query Widget in Web App Builder fails, returning no error message.
The bug is still here. I tested it right now by creating a WAB app directly in ArcGIS Online. The app in Console reports its env.js is deployVersion = '2.15';
Still nothing Exports from the Attribute Table.
Error in console says:
Widget.js?wab_dv=2.15:82 Error exporting CSV for Attribute Table
This is just a random junk app with a junk layer.- ExportQueryTestApp
Hit 'Apply' Query, then 'Open in Attribute Table' on the '...' menu. Lastly, click 'Export to CSV' in the Attribute Table. Bug happens.