- 899 Views
In many situations when working with a computer, for example, when writing a thesis, doing projects, developing software, or even writing emails or messages, the most popular and used basic computer feature is Copy & Paste. We thank Larry Tesler and Tim Mott for these discoveries.
Operating systems store copied (or cut) data in a temporary buffer called "Clipboard". Many types of data can be stored on the clipboard, including text, images, videos, files and folders. Objects you copy can be kept in multiple formats at the same time in current operating systems. The software you use includes algorithms that determine which formats your data will be stored in when copying, and which format the data will be pasted while pasting. In office software, in case of need, it offers the user the opportunity to choose which data type to paste with the "paste special" command.
Two of the most well-known shortcuts are also shortcuts for copy & paste. Command + C and Command + V in macOS, and Ctrl + C and Ctrl + V in Windows allow us to trigger copy and paste commands from the shortcut.
Status in FileMaker
FileMaker Pro has copy & paste support in many sections. In the application you created, you can copy an area in the "manage database" section, an object, a script or a script step in the layout where you make screen designs, and paste it into another part of the same project or a different project.
Copy paste supported and unsupported components in FileMaker 19
- Script Step
- Custom Function
- Custom Menu
- Value List
- Design Objects (Field, button, portal, text, tab/slider...)
- User Account
- Priviledge Sets
- External Data Sources
When using FileMaker Pro you can copy & paste supported components without any problem. After you copy a component in FileMaker, you cannot paste it into applications other than FileMaker. FileMaker uses its own data types on the clipboard, and the clipboard data type created for each component is used.
Data types are given in the table below for Mac and Windows.
All these data types with different names are essentially XML data. Seeing or even manipulating this XML data with a tool has a lot of potential.
At this point, you can manage the data of FileMaker components on the clipboard with the free Clips tool that we have developed in Filemaker and that we have made available to FileMaker Developers. Clips simply opens a new record and displays the XML data as soon as you command to paste an element you copied in FileMaker. When this element is needed, the Copy button places information on the clipboard in the language that FileMaker will retrieve. Moreover, it writes the information in the exact format FileMaker wants to the clipboard after some changes without breaking the structure on the XML.
As the Cabitas team, we have many use cases where we reduce the operations that would take 10 minutes to seconds by using Klips. As FileMaker Solution Partner and FileMaker Turkey representative, we share Klips free of charge to people who develop software or systems with FileMaker in Turkey.
Some usage examples of Clip
- You can use it to archive your favorite elements. For example, once you save your special functions, standard fields and scripts to the clip, you can copy and paste them into new projects from Clips.
- You can easily change the variable name you use in different lines in a long script.
- It offers the possibility to change sources while copy-pasting between projects. For example, let's say you use the old project and the new project for similar purposes, but use different table names. While copy&pasting the sciprti you have written, it will paste it as "table missing" because it cannot find the name of the relevant table. With Clips, it will update the name of the table stored in the XML that you have taken to the clipboard and will allow you to transfer it without any problems.
- Similar to the above article, it provides the opportunity to easily copy/paste the elements that will perform similar operations in the same project between modules. For example, in the customer section, a very similar script to the "pass the customer" script may be required in the supplier module. The only difference is the table occurrences (table occurrence, to) you will use. With Klips, you can change the table formation names in the data you copied and quickly prepare your script for the other module.
- You can override the limits set in the FileMaker interface with XML manipulation. For example, you can add up to 50 segments to the button bar using the interface in FileMaker Pro layout mode. By manipulating the XML content of the button bar that you have clipped to the clipboard, when you re-import the segment numbered version with Clips to the clipboard and paste it into the FileMaker design, the 50 limit will be invalid for the second time.
Cabitaş FM Meetup: Klips
In one of our weekly technical meetings, which we announced on the Meetup platform, we examined the Clips tool and explained its use with simple applications. You can check out our meetup video to see the usage of the clip.
Using the Klips
Klips welcomes you with a simple interface.
To create an example, we first copy an element that we want to edit in any Filemaker file we are working with and transfer it to the clipboard. Then, by clicking the paste button in the Clips tool, we transfer the information transferred to the clipboard in FileMaker data format to the content section in the Clips interface.
The process is that simple, let's make a simple example to make the usage a little more concrete. After creating a table named Table1 in our work file, let's take it to the clipboard with the "copy" button or the Command+C shortcut.
We transfer the content in an editable form by saying paste the data containing the table definition that we transferred to the clipboard on the Clip. Clips opens a new record with each paste command to keep the data of old clipboards.
We can now see the XML data in the clipboard. In this example, let's assume that we want to change the name of the field named "PrimaryKey" in the table to "Field1" and take it back to the clipboard. We can make this change directly in the XML image, if the data we want to change is likely to be in different places, the Find / replace section will help us.
By clicking the Find/Change button, we open a window like the one below. After the window opens, we enter the appropriate values according to the changes we want and click the Find/Change button to ensure that the relevant changes are made. Then, we click the copy button to transfer the changes we made to the Filemaker file we are working on, and we ensure that the content we have changed is transferred to the clipboard in Filemaker data format.
After providing the transfer to the clipboard, Filemaker returns to our work file, pastes the new content into the relevant field and transfers the edited new content to our work file, and we reach the desired result. Similarly, using Clips, you can perform similar operations on all elements that you can export to the clipboard in FileMaker data format. You can tag and record the contents you transferred on the Clips with the Name section for editing, and use them again and again when you want to use them in your Filemaker work files.
In this way, you can effortlessly transfer the standard or frequently used scripts, the layouts you have created, with all the details you have created in the background, to your new work files. Editing records you create are listed on the left side of the Clips interface.
When you want to search among these records, you can quickly search among your records with the search field in the upper right part of the interface.
As Cabitaş Engineering, we offer Claris FileMaker licensing, consultancy, optimization and training services. You can contact the communication section for our license and professional support services.
You can follow our Youtube channel to watch our previous Meetups.
Download link sent to your email address