Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2   9.3   9.4    Statistic  

MapView.SetScript

Sets script trigger.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
MapView 9.3 Yes No No No Yes
MBS( "MapView.SetScript"; MapView { ; Filename; ScriptName } )   More

Parameters

Parameter Description Example value
MapView The map view reference number. $$MapView
Filename Optional
The database file name where the script is located.
"test.fmp12"
ScriptName Optional
The script name.
"MyScript"

Result

Returns OK or error.

Description

Sets script trigger.
Script is called for pins with identifiers when clicked.

Examples

Set script:

Set Variable [ $$MapView ; Value: MBS("MapView.CreateWithControl"; 0; "PlaceHolder") ]
Set Variable [ $r ; Value: MBS("MapView.SetScript"; $$MapView; Get(FileName); "PinClicked") ]

See also

Blog Entries

Created 6th June 2019, last changed 6th June 2019


MapView.SetRotateEnabled   -   MapView.SetScrollEnabled

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins