PDA

View Full Version : Data wrongly saved and then not loaded



Xarxus
July 26th, 2022, 08:59
I have created two buttons for the right bar. Each has its own associated structure. In the modules (there are 3) there are the data that are loaded correctly. Both structures are declared static, so existing data cannot be edited, but occurrences can be added.
In one of the two structures the data are saved without problems, while for the other the data are saved, but there is no structure tag, which prevents it from being loaded again when FGU is restarted.

I tried to compare the various classes and there seems to be no problem to me. Can you give me an indication of what to watch?

Xarxus
July 26th, 2022, 13:27
Ok, now is rightly written in db.xml, but is not loaded again...
I forced a save (/save) to see the db. It is in the list when i create it, but if I reload it disappears. Auf!

Xarxus
July 26th, 2022, 13:39
Ok, found... I'm a dumb!
To define the button on the right I used a reserved word.

The lesson is: do not use reserved words! ;)