Open iwalucas opened 5 years ago
Functions are not JSON serializable, that's the reason why aggregators and renderers are deleted on the deep-copied config object in the save/restore example.
But the example also demonstrates that it's not neccessary to save and restore the functions, they should already be a part of your pivot table, you should only want to restore the selection.
Note: You can merge/extend an existing (options) object.
But if I try to apply the saved config I got an error b/c the aggregator is empty
I have a pivottable that when I try to save, throws me some errors.... If I try to JSON.stringfy the pivotUIOptions, this is what I get (console output):
I tried to follow the "https://pivottable.js.org/examples/save_restore.html" tutorial, but I need to save it to DB and not cookie, so I need a full JSON string.
If I try:
I get a partial json, like:
instead of the original: