Good day! Things have been going well and the software is working perfectly!
I’m looking for a way to have Persist Settings work for the Master-Detail style reports. Even if it’s only the Master report that has persist settings – that would be okay.
Right now persist settings does not work with either the master or the detail.
Thanks for any help.
Mike Sheppard
Hi Micheal,
I’ll be updating you after preparing a demo of master-detail with persistance.
I’ve updated a demo for this case:
https://gist.github.com/gridphp/60195b80276a6b751e366a130f57155a
line 199,208,219
When defining persistence settings, instead of var opts, you need: var opts_list1 = { .. } – append “opts_<gridid>”
Also make sure storage key is unique string.
That seems very straight-forward – I will have a try at that when I get a chance.
We already use a unique name (filename) as we also have a method to store and retrieve the local storage key so users can have a default layout and a custom layout at the click of a button (custom code and database table to store the data based on $hostname).
storageKey: “gridState-<?echo $reportname?>”, // Gridstate Name
Thanks for the continued support!
Mike