I’ve implemented webdatarocks pivot in Angular 6 and it works great
i want users to save their slicing and dicing and filters so want to add a button to toolbar that saves the report configuration without data in my DB and when they select a report from menu now I sent JSON data from DB to client and that works but would like to send it with the configuration from the user as wll
any tips/directions please
Hi,
I had the same trouble. Having looked through the list of all available API calls in this component, I found that getReport() fits perfectly for such case. It returns the JSON object with necessary information.
Ben,
You have example how to use it, I’ve tried without success with some sample data
@Ben do you have some sample code (using Angular 6) since i cant get it working
Hello,
I don’t try it with the angular. Still, I will try to give you some guidance:
handler: function() {
var report = webdatarocks.getReport();
delete report.dataSource;
//the code for saving the "report" JSON
}
"dataSource"
part, after that you can call webdatarocks.setReport(report)
to load the report