Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
11.3
11.4
Statistic
FMM
Blog
Sets preferences value.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Preferences | 2.7 | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes, on macOS and Windows | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
Domain | The domain name for your preferences. Leave empty for default one. | "de.mbsplugins.MyApp" | |
Key | The key for the value lookup. | "Username" | |
Value | The new value text. | "Christian" | Optional |
Type | The data type to use. (Mac only) Can be integer, double, boolean or text. |
"text" | Optional |
Returns OK or error message.
Sets preferences:
MBS( "Preferences.SetValue"; "de.mbsplugins.MyApp"; "Username"; $username )
Set flag to not allow plugins to update:
MBS( "Preferences.SetValue"; "com.filemaker.client.advanced12"; "Preferences:AllowToUpdatePlugins"; 0; "integer")
Set file cache to 1 GB:
MBS( "Preferences.SetValue"; "com.filemaker.client.advanced12"; "Preferences:FileCacheSize"; 1048576; "integer")
Set user name in FileMaker preferences:
MBS( "Preferences.SetValue"; "com.filemaker.client.advanced12"; "Preferences:UserName"; "Chris" )
Switch off update checks:
Let(
[
oldValue = MBS( "Preferences.GetValue"; "com.filemaker.client.pro12"; "Preferences:AppGenOptions");
newValue = MBS("Math.BitwiseOR"; oldValue; 32 + 32768);
R = MBS( "Preferences.SetValue"; "com.filemaker.client.pro12"; "Preferences:AppGenOptions"; newValue; "integer")
];r )
Set initial file for FileMaker 19 or newer on MacOS:
MBS( "Preferences.SetValue"; "com.filemaker.client.pro12"; "Preferences:UseInitialfile"; 1; "integer") &
MBS( "Preferences.SetValue"; "com.filemaker.client.pro12"; "Preferences:Initialfile"; "filemac:/Mac/Users/cs/Documents/Test.fmp12"; "text")
Enable advanced tools:
MBS( "Preferences.SetValue"; ""; "Preferences:UseAdvancedTools"; 1; "integer" )
Created 18th August 2014, last changed 2nd July 2021
Preferences.SetTextSelectionWithDragAndDrop - PrintDialog.ClearOption
Feedback: Report problem or ask question.