Save and share searchBuilder state
Save and share searchBuilder state

Link to test case: http://live.datatables.net/bevawuce/5/edit?html,css,js,output
Debugger code (debug.datatables.net): Nothing to debug
Error messages shown: No messages shown
Description of problem: I'm trying to figure out how to share the searchBuilder state to another person and I don't know where to start or what to use. The idea is to be able to save the current searchBuilder state and then be able to send something (like a link, code, etc.) to someone else that the table can use to reload the searchBuilder state. The test case I've included is an example of what I'm working with.
Thank you in advance.
This question has an accepted answers - jump to answer
Answers
Hi @Kelmore ,
You can use the
searchBuilder.getDetails()
method to get a json object that represents the current state of SearchBuilder.searchBuilder.rebuild()
takes that json object as an argument and will then reconstruct the filtering that you had in place.Take a look at this example.
Thanks,
Sandy