In this article we want to introduce you the new functions from the MBS FileMaker Plugin in version 12.2.
For years we already have the isError function in the MBS FileMaker Plugin. We can call this after a MBS function to see if the previous MBS function returned an error. If you use many MBS functions in a script this can get confusing and it might be enough for you, e.g. if you are testing a script, to know if a plugin function in the whole script throws an error at all. For this we have developed two new functions. With the HadErrors function you get back the number that is currently in the error counter. This will be incremented by one whenever a MBS function returns an error. If you want to log the errors of a script, you first have to call the ClearErrors function to set the Error Count to 0. At the end of the script you can then call the HadErrors function.
We also have a new function for the WordFile section. With the WordFile.Tags function we get a list with all tags that a specific Word file contains. This is especially useful for debugging. The range in which tags are listed depends on the markers set by the WordFile.SetMarkers function. With it we can limit the search range.
The function JSON.Import that we already have in the plugin since version 5.4 has now got a new RootTableName parameter so that you can specify the name of the RootTable by yourself. By default it is json.
There are also new features for Mac and the use of our plugin with the FileMaker iOS SDK:
The DialogModifications functions are now also available for the iOS SDK. This part makes it possible to overwrite the standart texts of FileMaker error messages dialogs with your own texts. In this way we can better customize the dialogs and help the user to better understand the dialog. We can also use the new DialogModifications.List function to output a JSON that lists the dialogs that we have already modified. This lets us as programmers keep a better overview.
The clipboard functions are very handy to put data to the clipboard and query it from there. For Mac and the iOS SDK you can now also put PDF files on the clipboard and retrieve them again. The Clipboard.GetPDF and Clipboard.SetPDF functions are now available for this purpose. When setting and retrieving the PDF, we work both times with container values.
We hope you will also find some interesting new features. We wish you a lot of fun with MBS FileMaker Plugin Version 12.2. If you need a license or have any questions, please contact us.