Get Free Trial

Not Changed filename

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).{
                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.


2 answers

Tanya Gryshko 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": "",
// ...
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.

Jesus Jose Jurado April 20, 2018

thanks so much

Please login or Register to Submit Answer