Interface functionality: saving modifications in databases

Changes* in the properties of an object in the database setup can be saved directly manually in the current database structure (.inf file) by right-clicking the database node which the object is part of, and choosing Save in the pop-up menu, by choosing Save (Ctrl+S) in the File menu or by clicking the Save button:

floppy_disk_blue

Since all sub-objects in a database are stored in one and the same .inf file, you cannot store changes in the sub-object separately; you have to save the database structure as a whole to save the changes to an individual field, for instance.

You can also only save changes in selected files, by choosing File > Save all... (Ctrl+Shift+S) or by clicking the Save all button:

floppy_disks

In the Save objects window that opens when you click this button, you will be presented with an overview of all the unsaved files in which you made changes, and you can determine of each of these separately whether you want to save them or not, by selecting them or deselecting them. Click Yes to save the selected files. Cancel returns you to Designer.
When you close Axiell Designer while you haven't saved all changes yet, the Save objects window will automatically appear, allowing you to save your work before the application is closed.

Note that in the Application browser only physical application objects (files) can be saved separately (currently these are just the .pbk, .inf, and .fmt files). This is because sub-objects like e.g. datasets or fields, are not single files. To save changes in sub-objects immediately, save the larger file that incorporates them, like the database definition.

While managing objects in the tree view of the Application browser, there are some actions that initiate an automatic save of an object, such as reindexing. Reindexing forces a save of any modified .inf files before reindexing is actually started. The rebuilt indexes are saved when reindexing. Further, database definitions and folders are saved on creation.

From Designer 7.7.4, when saving database changes, Axiell Designer checks if all the required SQL tables exist and creates any missing tables, but only when running in administrator mode, though.

* The nature of properties forms and lists sometimes requires you to leave a property that you just edited, before you can save it. So when you have edited your last property for today, make sure you first click some other property or tab, before you save all your work.

Your .inf files are safe

To prevent possible loss of .inf files because of any errors occurring while you save an .inf file, there is an automatic backup procedure in place. When you instruct Designer to save your work, it first makes a backup of the files to be saved by renaming the original files (meaning: the files in which you have not yet saved your current changes). Those backup files have the same name but the extension .bak. In the unlikely event that the subsequent saving of the changed .inf file corrupts the file, this file will automatically be closed and deleted, and the .bak file is given back its original extension .inf. Of course you must then enter your changes to the file again, and try to save it more successfully; but at least you will have a proper .inf file.
But usually saving your files will happen without problems, and when a save has indeed been successful, the automatically created .bak files will be deleted automatically again too, as if they were never there.