Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Clipboard.SetFileMakerData
Puts the xml text on the clipboard for a FileMaker layout/script object.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Clipboard | 4.0 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |
MBS( "Clipboard.SetFileMakerData"; Type; Text ) More
Parameters
Parameter | Description | Example |
---|---|---|
Type | What element type to set. Can be "auto" for version 10.1 for automatic type selection. |
"Layout" |
Text | The text to put on the clipboard. | $text |
Result
Returns OK or error.
Description
Puts the xml text on the clipboard for a FileMaker layout/script object.Be sure to put the correct xml on the clipboard to avoid FileMaker being confused.
The type can be ValueList, Script, ScriptStep, Layout, CustomFunction, Table, Field or Layout12.
Pass auto as type in version 10.1 or newer to let the plugin look at the xml to decide on type.
For server this will modify the clipboard of the user account running the server app on the server computer and not the clipboard of any client.
Added type ValueList for FileMaker 16.
For custom menus in FileMaker 17, please use Clipboard.SetText function.
Examples
Put xml back on clipboard:
Set Variable [$r; Value: MBS( "Clipboard.SetFileMakerData"; "auto"; $xml ) ]
See also
- Clipboard.AddText
- Clipboard.GetFileMakerData
- Clipboard.SetText
- HotKey.Register
- SyntaxColoring.AddContextMenuCommand
Release notes
- Version 14.4
- Fixed a memory leak in Clipboard.SetFileMakerData, Clipboard.DetectFileMakerDataType and XML.Import functions.
- Version 12.0
- Enhanced Clipboard.DetectFileMakerDataType and Clipboard.SetFileMakerData to recognize script folders.
- Version 11.5
- Fixed crash in Clipboard.SetFileMakerData function.
- Version 10.1
- Added auto mode for Clipboard.SetFileMakerData and Clipboard.GetFileMakerData functions.
- Version 7.2
- Added ValueList type for Clipboard.SetFileMakerData and Clipboard.GetFileMakerData.
Example Databases
- Third Party/FileMaker Snippet Storage
- Utility functions/Create Sort Script
- Win Only/Snippets for Windows
Blog Entries
- Goodies 33: Custom context menu commands for FileMaker ScriptWorkspace
- MBS FileMaker Plugin, version 14.4pr1
- MBS FileMaker Plugin, version 12.0pr6
- MBS FileMaker Plugin, version 11.5pr1
- MBS FileMaker Plugin, version 10.1pr5
- Generate sort script automatically
- New functions of the MBS Plugin Version 9.5
- Insert snippet for FileMaker on Windows
- Add a search and replace command for FileMaker Script Workspace
- Custom context menu commands for FileMaker ScriptWorkspace
FileMaker Magazin
This function checks for a license.
Created 18th August 2014, last changed 21st February 2020