I prefer using a snippet to export so i don’t have to have checkboxes on my table, and it’s just more user-friendly to have a button.
However, in doing so, I lose the ability to use table columns as export columns. Is there a way to access the list of fields that are used in the table?
Even better, is there a way to access only the visible columns in a table? With the standard table export, it includes hidden columns, which is a bummer.
I’m thinking if I could get an array of only the visible columns we could do this
var params = arguments[0], $ = skuid.$; var model = skuid.$M('ModelName'); var fields = [ //Insert Array of API names for visible columns in table ]; model.exportData({ fields: fields, doNotAppendRowIdColumn: true, useAPINamesForHeaders: false });<br>