Despite the COVID-19 outbreak, our team continues operating at full speed. We are always here to support and answer all your questions.

Feel free to reach out by filling this quick form.

Fill the form
Get Free Trial

Not Changed filename

Resolved
Jesus Jose Jurado asked on April 19, 2018

Our server received a JSON from a pivot table, but the “filename” is not being changed when it is received. I set this into pivot.Save(options).

report.save({
                withDefaults: true,
                withGlobals: true,
                filename: ‘myreport’, //this name is not being reflected on the JSON file that our server receives
                destination: ‘server’,
                url: ‘/endpoint’,
                callbackHandler: function () {
                    console.log(“saved successfuly” + arguments);
                }
            });

 
I’m attaching an image with this case, it is a JSON that our server received.

Attachments:
flexmonster.png

2 answers

Public
Tanya Gryshko Flexmonster April 20, 2018

Hello, Jesus Jose,
Thank you for posting a question.
The data sent from Flexmonster to your server has the following format:

name: myreport
report: {
"dataSource": {
"filename": "https://cdn.flexmonster.com/data/sales.csv",
// ...
}
}
type: json

Please note that name parameter has myreport value which you specified as report name.
filename parameter contains the URL to CSV or JSON file you used as a data source.
Please let me know if you have other questions.
Regards,
Tanya

Public
Jesus Jose Jurado April 20, 2018

thanks so much

Please login or Register to Submit Answer