patrickTingen / DataDigger

A dynamic dataviewer for your Progress / OpenEdge databases
https://datadigger.wordpress.com/
MIT License
50 stars 23 forks source link

Merge per-db settings into one INI section #93

Closed patrickTingen closed 2 years ago

patrickTingen commented 2 years ago

Currently, DD saves information about your last used filters, changed formats, field positioning etc in the INI file. It does this separately for each database/table. So suppose you have two sports databases, you might end up with this:

Salesrep.Rep-Name:FilterHistory=Brown
Salesrep.Sales-Rep:FilterHistory=BBB
Salesrep:LastUsed=12/05/2022 12:32:30
Salesrep.Rep-Name:Format=X(40)

[DB:sports12]
Salesrep.State:FilterHistory=South
Salesrep:LastUsed=14/05/2022 08:16:34
Salesrep:Rep-Name:width=50

In this example, you see that I set the format for salesrep.rep-name in sports11 to X(40). If I start the other sports db, I will still see the old format. My guess is, that if you have separate databases, but with identical table/field names, the settings for these fields can be combined because they most probably represent the same information. That means that if you change the custom format in one database, it is reflected in the other. Same goes for filters, field order and field width. This will be done by using the same section name across multiple databases. The settings part above would then look something like this:

Salesrep.Rep-Name:FilterHistory=Brown
Salesrep.Sales-Rep:FilterHistory=BBB
Salesrep.State:FilterHistory=South
Salesrep:LastUsed=14/05/2022 08:16:34
Salesrep.Rep-Name:Format=X(40)
Salesrep.Rep-Name:width=50