Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   7.6    Statistic  

JavaScript.GetProperty

Queries property value as text.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
JavaScript 5.4 Yes No Yes, macOS only No Yes

MBS( "JavaScript.GetProperty"; JavaScriptContext; PropertyName )

Parameters

Parameter Description Example value
JavaScriptContext The reference number of the javascript context. $Context
PropertyName The name of the property. "FirstName"

Result

Returns text or error.

Description

Queries property value as text.

Examples

Set and query property:

Set Variable [ $js ; Value: MBS( "JavaScript.New" ) ]
Set Variable [ $r ; Value: MBS( "JavaScript.SetProperty"; $js; "FirstName"; "Joe" ) ]
Show Custom Dialog [ "Result" ; MBS( "JavaScript.GetProperty"; $js; "FirstName" ) ]
Set Variable [ $r ; Value: MBS( "JavaScript.Release"; $js ) ]

See also

Example Databases


JavaScript.EvaluateScript   -   JavaScript.HasProperty

Feedback: Report problem or ask question.




Links
MBS FileMaker blog