This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v19
User settings
|
Page of Database Settings | Page of User Settings | Page of User Settings for Data File |
General page | N/a | N/a |
Interface page | Identical to standard settings | Identical to standard settings |
Compiler page | N/a | N/a |
Database/Data storage page | N/a | N/a |
Database/Memory page | Identical to standard settings | Identical to standard settings |
Moving page | N/a | N/a |
Backup/Scheduler page | N/a | Identical to standard settings |
Backup/Configuration page | N/a | Identical to standard settings |
Backup/Backup & Restore page | N/a | Identical to standard settings |
Client-server/Network options page | Identical to standard settings | Identical to standard settings |
Client-server/IP configuration page | Identical to standard settings | Identical to standard settings |
Web/Configuration page | Identical to standard settings | Identical to standard settings |
Web/Options (I) page | Identical to standard settings | Identical to standard settings |
Web/Options (II) page | Identical to standard settings | Identical to standard settings |
Web/Log (type) page | Identical to standard settings | Identical to standard settings |
Web/Log (backup) page | Identical to standard settings | Identical to standard settings |
Web/Web Services page | Method prefixing option not available | Method prefixing option not available |
SQL page | Identical to standard settings | Identical to standard settings |
PHP page | Identical to standard settings | Identical to standard settings |
Security page | N/a | N/a |
Compatibility page | N/a | N/a |
When you edit settings in this dialog box, they are automatically stored in the corresponding settings.4DSettings file (see below).
Some of the user settings are also available through the SET DATABASE PARAMETER command. User settings are parameters with the "Kept between two sessions" property set to "Yes".
When the "User settings" feature is enabled, user settings edited by the SET DATABASE PARAMETER command are automatically saved in the user settings for the data file.
Note: Table sequence number is an exception; this setting value is always saved in the data file itself.
When you check the Enable User Settings in External File option in the Database Settings, user settings files are automatically created. Their location depends on the kind of user settings defined.
The standard user settings file is automatically created and placed in a [Settings] folder at the following location:
<DatabaseFolder>/Settings/settings.4DSettings
... where <DatabaseFolder> is the name of the folder containing the database structure file.
Note: In merged applications, the user settings file is placed at the following location:
The user settings file linked to the data file is automatically created and placed in a [Settings] folder at the following location:
<DataFolder>/Settings/settings.4DSettings
... where <DataFolder> is the name of the folder containing the current data file of the application.
Note: When the data file is located at the same level as the structure file (default when creating a database), structure-based and data-based user settings files share the same location and file. The User Settings for Data File... menu command is not proposed.
User settings files are XML files; they can be read and modified using integrated 4D XML commands or using an XML editor. This means that you can manage settings by programming, particularly in the context of applications compiled and merged with 4D Volume Desktop. Note that when you modify this file by programming, the changes are only taken into account the next time the database is opened.
Database settings can be stored at three levels. Each setting defined at one level overrides the same setting defined at a previous level, if any:
Priority level | Name | Location | Comments |
3 (lowest) | Structure settings (or Database settings when "User settings" feature not enabled) | settings.4DSettings file in the Sources folder (project databases) or in the Settings folder as the same level as the structure file (binary databases) | Unique location when user settings are not enabled. Applied to all copies of the application. |
2 | User settings (all data files) | settings.4DSettings file in the Settings folder at the same level as the Project folder (project databases) or as the structure file (binary databases) | Overrides Structure settings. Stored within the application package. |
1 (highest) | User settings (current data file) | settings.4DSettings file in the Settings folder at the same level as the data file | Overrides Structure settings and User settings. Applied only when the linked data file is used with the application. |
Keep in mind that user settings files can only contain a subset of relevant settings, while the structure file contains all custom settings, including core settings.
Product: 4D
Theme: Database Settings
Modified: 4D v16
4D Design Reference ( 4D v19)