Persist Settings with Master-Detail Report

QuestionsPersist Settings with Master-Detail Report
Michael Sheppard asked 5 years ago

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

3 Answers
Abu Ghufran Staff answered 5 years ago

Hi Micheal,

I’ll be updating you after preparing a demo of master-detail with persistance.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Abu Ghufran Staff answered 5 years ago

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.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Mike answered 5 years ago

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

 

Your Answer

2 + 10 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?