KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Project Mode's Design Mode Preferences
PRODUCT: 4D | VERSION: 20 R | PLATFORM: Mac & Win
Published On: January 27, 2025

In 4D Project Mode's Design Mode handles the users' preferences differently. Each project stores the preferences next to the database folder with a set of preferences being created for the current system (OS) user.

The preferences folder uses the user's name as part of the folder's name. For example, if the current OS's user's name was "Admin" the preferences folder's path for a 4D database on the machine would be:
.../{database directory containing Project folder}/userPreferences.Admin/

The following code will generate the path of the preferences folder for the current system user:

$preferenceDirectory_t:=Get 4D folder(Database folder)+"userPreferences."+Current system user+Folder separator

This folder contains files that store preferences such as the position and size of the design mode windows like the method windows and the recent tables and other items for the design mode that would be specific to the current user.

It can be good to clear out this folder when sharing the database folder with others to reduce adding on wasted size unless the preferences are intended to be shared.