Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
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 license.
Created 17th December 2019, last changed 26th December 2019