[Data Grid] Save Configs

Forge Component
(28)
Published on 24 Sep (3 weeks ago) by OutSystems R&D
28 votes
Published on 24 Sep (3 weeks ago) by OutSystems R&D

Hi guys. Couple questions about saving. First I noticed saving keeps most of the configuration like column selection, sizing , order etc. However it doesn't seem to save any filter information. Is there some way I can turn that on or add it?


Second , is there any way to save more than one config per user ? Thanks for any extra info you can provide.

Anyone ? Is it possible to save the filters with the configuration ?



Hi Mark,

Filters should be stored as part of the configuration. I've already tested it, and, as you described, it's not working. It's a bug and I'll report it to the team. Thanks for the heads up.

Still on the configurations, they store per screen, user id and grid id. So, it's not possible, for the same grid, to have different user configurations. Can you give me an example of where you'd use such a feature?

Regards,

Ricardo Alves

Hi Ricardo. My scenario is a report with a lot of columns , over 100. Users will use it as an ad hoc reporting tool. So it would be nice to save multiple configurations that they can just load when they come back at a later date.The users will be from many different areas of the company and have different needs.

I forked the component and customized it to achieve this. Basically I just added config name and description to the entity, then added a gridConfigId/name/desc parameters to rest service, server action , and the save and load web blocks. Then added it to the saveConfig and resetConfig javascript functions. Would love to see something like this become part of the standard component.

Then I made kind of starter template with just a few columns in the config. It loads by default. Users can add columns etc.and save their own. Then they can choose from their own list of configs when returning.


Of course I didn't want to fork it. And now I'll have more work when the filter configurations get fixed :(