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.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3   10.4   10.5    Statistic    FMM    Blog  


Sets a global property.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
JavaScript 10.0 Yes Yes Yes Yes Yes
MBS( "JS.SetGlobalPropertyValue"; JSRef; Name; Value )   More


Parameter Description Example
JSRef The JavaScript reference number. $js
Name The name of the variable. "test"
Value The number or text value. 123


Returns OK or error.


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.


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.

MBS Xojo tutorial videos