Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Plugin.LimitToFile
Sets which files are allowed to use our plugin.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Plugin | 15.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "Plugin.LimitToFile"; FileList ) More
Parameters
Parameter | Description | Example |
---|---|---|
FileList | The list of file names to allow. We use Get(FileName) and compare case sensitive, so please match the names exactly. |
"Contact" |
Result
Returns OK or error.
Description
Sets which files are allowed to use our plugin.This limitation is enforced early, so you can't even query the plugin version anymore if not allowed.
Please use Plugin.SetFunctions later to disallow calling this function to avoid someone changing the allowed file list.
The setting is not permanent, so please do this in start script of the solution.
Examples
Limit to current file only:
Set Variable [ $r ; Value: MBS( "Plugin.LimitToFile"; Get(FileName) ) ]
Limit to a few files in a solution:
Set Variable [ $r ; Value: MBS( "Plugin.LimitToFile"; "MyInvoices¶MyContacts¶MyAssets") ]
Allow all files:
Set Variable [ $r ; Value: MBS( "Plugin.LimitToFile"; "" ) ]
See also
Release notes
- Version 15.1
- Added Plugin.LimitToFile function.
Blog Entries
This function is free to use.
Created 28th January 2025, last changed 28th January 2025
