Exporting Options in SisenseJS
Published 03-17-2023
Hello!
Please accept my apologies for the delay.
Kindly ask you to try using this prepareCSVPayload and check if the issue persists:
const prepareCSVPayload = (widget) => {
let query = {}
query.data = widget.$$model.$query.buildWidgetQuery(widget.$$model, 'exportToCSV');
query.data = Object.assign(query.data, {
format: "csv",
isMaskedResponse: true,
download: true,
count: 0,
offset: 0
});
query.data = widget.$$model.dashboard.$query.createJaqlRequestConfig(query.data);
query.data = encodeURIComponent(JSON.stringify(query.data))
return new URLSearchParams(query).toString()
}
Best regards,
Illia