Settings - how to store in the best way? [message #7737] |
Fri, 03 June 2022 04:31 |
htManager
Messages: 433 Registered: May 2014
|
Senior Member |
|
|
Hi Tony, I want to ask your advice.
How do you handle various settings for reports, screens etc. I very often have to determine what is shown in the reports, screens, etc. For example the date or period from until the date or period to. I could make this with hard coding in the controller script or the class file. But this wouldn't be very convenient.
My current solution would be that I create a table with various dummies, where I could insert the needed values.
Example structure for such a table:
description (var 255)
field_label_1 (var 50)
field_var_1 (var 50)
...
field_label_11 (var 50)
field_int_1 (int 10)
...
Would this be practicable or do you have a better solution?
|
|
|