Get Free Trial

Save the Grid State

Answered
Jerome Harrison asked on May 19, 2022

How do I save the grid state to a json string for database storage instead of downloading it as a Json file?

3 answers

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster May 20, 2022

Hello,

Thank you for reaching out to us.

Flexmonster provides the getReport API call that returns ReportObject, which describes the current report. You are welcome to check our documentation: https://www.flexmonster.com/api/getreport/ 
Using this method, you can receive the Report Object and then transform it into the string. Please check the following JSFiddle for reference: https://jsfiddle.net/flexmonster/8hrmnc9L/ 
This way, you can operate with the string and add it to your database.

Please let us know if it works for you. Feel free to contact us if other questions arise.

Kind regards,
Nadia

Public
Maksym Diachenko Maksym Diachenko Flexmonster May 31, 2022

Hello,

Hope you are doing well.

Our team is wondering whether you had time to try the suggested approach for saving the report string into the database. Looking forward to hearing your feedback.

Best Regards,
Maksym

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster June 7, 2022

Hello,

Hope you are doing well.

Just checking in to ask if you had a chance to try the suggested approach. Could you please let us know if our response helped?

Looking forward to your response.

Kind regards,
Nadia 

Please login or Register to Submit Answer