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:
12.0
12.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
Statistic
FMM
Blog
JS.SetGlobalPropertyValue
Sets a global property.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
JavaScript | 10.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "JS.SetGlobalPropertyValue"; JSRef; Name; Value ) More
Parameters
Parameter | Description | Example |
---|---|---|
JSRef | The JavaScript reference number. | $js |
Name | The name of the variable. | "test" |
Value | The number or text value. | 123 |
Result
Returns OK or error.
Description
Sets a global property.Please pass value as number or text.
Container, date, time and timestamp are converted to text.
This is a simplified version of JS.SetGlobalProperty to avoid extra JSON encoding for simple values.
Examples
Sets a variable with name:
MBS( "JS.SetGlobalPropertyValue"; $js; "Hello"; 123,45 )
See also
Example Databases
Blog Entries
- Custom Functions in JavaScript
- FileMaker and JavaScript - the perfect combination
- MBS FileMaker Plugin, version 9.6pr4
This function checks for a paid license.
Created 17th December 2019, last changed 26th December 2019
