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: 10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4    Statistic    FMM    Blog  

SharingPanel.SetScript

Sets the script to call when sharing panel is done.

Component Version macOS Windows Linux Server iOS SDK
SharingPanel 11.4 ❌ No ❌ No ❌ No ❌ No ✅ Yes
MBS( "SharingPanel.SetScript"; FileName; ScriptName { ; Parameter } )   More

Parameters

Parameter Description Example Flags
FileName The file name for the script to trigger. "test.fmp12"
ScriptName The script name of the script to launch. "SharingFinished"
Parameter The parameter to pass to the script. Optional

Result

Returns OK or error.

Description

Sets the script to call when sharing panel is done.
In the script you can check with SharingPanel.Result, SharingPanel.ErrorText and SharingPanel.ErrorCode what happened.
If the activity provides an answer, check SharingPanel.Item and SharingPanel.ItemCount functions to get them.

Examples

Sets the script:

Set Variable [ $r ; Value: MBS( "SharingPanel.SetScript"; Get(FileName); "Shared") ]

See also

Example Databases

Created 28th August 2021, last changed 28th August 2021


SharingPanel.SetExcludedActivityTypes - SharingService.GetEmailRecipients

Feedback: Report problem or ask question.