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:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
JS.SetGlobalPropertyValue
Sets a global property.
| Component | Version | macOS | Windows | Linux | Server | FileMaker 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
Created 17th December 2019, last changed 26th December 2019
JS.SetGlobalProperty - JS.StringCount
Feedback: Report problem or ask question.
Links
MBS Xojo blog