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.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
MenuItem.SetURL
Sets the URL to query when menuitem is used.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| Menu | 6.5 | Yes | Yes | No | No | No |
Parameters
| Parameter | Description | Example |
|---|---|---|
| item | The reference to the menu item. Please create one with MenuItem.CreateMenuItem or MenuItem.CreateSeparator. | $item |
| URL | The URL to trigger. |
Result
Returns OK or error.
Description
Sets the URL to query when menuitem is used.$$ID$$ in the URL is replaced with menu ID.
Queries http/ftp/sftp URLs with CURL, other URLs passed to OS to open.
Examples
Create menu to open email application:
Set Variable [$item; Value:MBS("MenuItem.CreateMenuItem"; "Send Email to Support")]
Set Variable [$r; Value:MBS("MenuItem.SetURL"; $item; "mailto:support@monkeybreadsoftware.test")]
Set Variable [$r; Value:MBS("Menu.AddItem"; $menu; $item)]
See also
- Menu.AddItem
- MenuItem.CreateMenuItem
- MenuItem.CreateSeparator
- MenuItem.GetTag
- MenuItem.GetURL
- MenuItem.SetBold
- MenuItem.SetTag
Blog Entries
Created 11st October 2016, last changed 15th October 2016
MenuItem.SetToolTip - MenuItem.SetUnderline
Feedback: Report problem or ask question.
Links
MBS FileMaker blog