Jump to content

Recommended Posts

Posted

In this article we want to introduce you the new functions from the MBS FileMaker Plugin in version 15.4.

Plugin

In the last release, we talked about the possibility of registering FileMaker functions and script steps so that they can be used across multiple FileMaker databases. In the latest release, the functions for registering functions and script steps were added. To allow you to unregister them again, we have added the new functions Plugin.UnregisterFunction and Plugin.UnregisterScriptStep. 

You can now register functions to use JavaScript for the implementation. That may provide bigger performance for certain functions like processing JSON.

see also Register custom functions with MBS Plugin.

DNS Lookup

The Lookup section can determine the server address for a domain and vice versa. You can now also query this information as JSON. To do this, use the DNSLookup.JSON function.

Let ( [
    d = MBS("DNSLookup.LookupHostByName"; "www.apple.com"; 6);
    r = MBS("DNSLookup.JSON"; d);
    e = MBS("DNSLookup.Release"; d)
]; r )

Example result: 
{
	"name":	"e6858.dsce9.akamaiedge.net",
	"host":	"www.apple.com",
	"aliases":	[
		"www.apple.com", 
		"www-apple-com.v.aaplimg.com", 
		"www.apple.com.edgekey.net"
	],
	"addrtype":	30,
	"addressList":	[
		"2a02:26f0:ab00:38d::1aca", 
		"2a02:26f0:ab00:393::1aca"
	]
}

Menu

The Menu functions have been delighting users for years. They allow you to display your own pop-up menus on Mac and Windows and customize them according to your preferences. The new Menu.IsOpen function checks in some timer script whether the menu is currently open.

FM

Each Get function in FileMaker has its own ID. For example, the Get(FileName) function has the ID 1005. You can now call the Get functions not only by their generic name, but also by specifying their ID with FM.Get.

IMG_15.4_B3.png

Goodies

With this release we add automatically clipboard conversions for the XML FileMaker uses when copying script steps, layout elements and more. You can copy something in FileMaker, paste it in a text editor, make changes and copy & paste back to FileMaker. A feature that many MBS users have been waiting for, is finally possible with that. You can now copy the example snippets on our website at the touch of a button and paste them directly into your FileMaker script. This makes them easier to use and modify according to your needs. This should make working with the plugin much easier for you. 

IMG_15.4_B1.jpg

see also Copy and paste XML in FileMaker

For Mac users, we also offer the option to sort the list of styles when selecting a style for a layout section. Enable or disable this feature with the "SyntaxColoring.SortStyleMenu.SetEnabled" function. 

sortmenus.gif

If you use our improvements for field selection, you can now press the "Command-G" key combination to jump to the last occurrence in the table.

Python

We can set a recursion limit with the new Python.SetRecursionLimit function. By default, the recursion level you use is set to 1000 recursions. If your project cannot manage with this, you can now extend it. You can check which recursion limit is currently set at any time with Python.GetRecursionLimit.

WordFile

You can also use the plugin to influence Word files. If the Word file contains changes, it may log what text was deleted. We skip deleted text by default. But now you can decide for yourself. The WordFile.SetSkipDeletedText function is available for this purpose. It sets whether to skip deleted text.

WebView 

When you're surfing the internet, you'll often see small images displayed next to website names. These small images are called favicons. You can now query them in the WebViewer for a website. Use the WebView.Favicon function to obtain the image data as a container value or the WebView.FaviconURI function to get the current URI of the favicon as a string.

We also have two new functions for Windows users in the WebView area. With WebView.GetMemoryUsageTargetLevel and WebView.SetMemoryUsageTargetLevel, you can obtain or set the desired memory consumption level of the WebView. The value is 0 for normal and 1 for low. Scripts will not be impacted and continue to run. This is useful for inactive apps that still want to run scripts and/or keep network connections alive and therefore could not call TrySuspend and Resume to reduce memory consumption. These apps can set memory usage target level to kMemoryUsageTargetLevelLow when the app becomes inactive, and set back to kMemoryUsageTargetLevelNormal when the app becomes active. 

Mac

There are also new features for Mac and the iOS SDK

Sharing HTML

Since plugin version 10.3, you can use the MBS FileMaker Plugin to access Apple's sharing service in FileMaker to transfer data via Air Drop, Mail, Messages, iPhoto, and more. In this release, we have added the ability to share HTML with others. The SharingService.ShareHTML function is now available for this purpose.

System Info

In some cases, it can be very useful to know which Mac you are currently using. For these cases, the SystemInfo.MacProductName function is now available. It provides us with the model of the Mac we are working on. Also new in the SystemInfo area is the SystemInfo.MacProductSOCName function. It provides us with the name of the system on chip in the current Mac. 

Show Custom Dialog [ "My Mac" ; 
"MacModel: " &  MBS("SystemInfo.MacModel")  & ¶ & 
"MacProductName: " &   MBS("SystemInfo.MacProductName") & ¶ &
"MacProductSOCName: "  &  MBS("SystemInfo.MacProductSOCName")& ¶ & 
"ComputerName: "  & MBS("SystemInfo.ComputerName")]

IMG_15.4_B2.png

We hope you will also find some interesting new features. We wish you a lot of fun with MBS FileMaker Plugin Version 15.4. If you need a license or have any questions, please contact us.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.