Version history:
2.0 - 16th March 2010.- Added Functions to call functions in your applications over a TCP/IP socket.
- Added URL Scheme functions on Mac OS X.
- Added GraphicsMagick methods for image manipulation.
- Fixed a bug in WebView.FindWindowByTitle. Now it should work again as promised.
- Removed PHP functions.
- The SystemInfo.OSVersionString function now detects Windows 7.
- Added WebView.Print.
- Added WebView.GetLinkCount and WebView.GetLink functions.
- Added optional parameter for Get/Set methods for form fields to specify whether only visible fields should be checked.
- Replace the existing callback with new code using the status field. This works with IE7.
- Changed code to search for a webview to work better with borders.
- Added functions for running slideshows on Mac OS X.
- Added Container.Export.
- The registration function can now be called as often as you want with the correct code without failing.
- Webviews can now have the statusbar and the plugin still finds them.
- Added WebView.GetFormCount
- Added WebView.GetForm
- Added SystemInformation module.
- Added Window Transitions.
- Added WebView.GetSource function to get the webview html source code.
- PHP is now external on Mac, so you need to use the Load function to load the PHP library. For example you copy the php dylib file to your root folder and you can load it with the path "/libphp5.dylib".
- Fixed a bug with the plugin not finding the correct webview on windows.
- Beta
- Fixed JPEG functions.
- Fixed WebView find code.
- Alpha 6
- Added PHP functions for Windows.
- Added MBS("PHP.Load";PathText) which loads the dll. On Mac OS X it returns always OK. On Windows you need to pass a path to the php5ts.dll file.
- Added callback from PHP to Filemaker for evaluate: MBS("PHP.Run";"echo FMExecuteSQL("select * from FileMaker_Tables");"). Will give a list of tables as text result. A second parameter (a number) specifies the column delimiter (default is 9 for tab) and a third parameter (a number) specifies the row delimiter (default is 13 for return).
- Alpha 5
- Added PHP functions for Mac OS X.
- Added MBS("PHP.ExistsVariable";VariableName) to return a boolean.
- Added MBS("PHP.GetVariable";VariableName) to return a global variable as text.
- Added MBS("PHP.SetVariable";VariableName;TextValue) to set a global variable.
- Added MBS("PHP.Run";ScriptCode) to run a script. Will return OK on success or an error on bad syntax.
- Added MBS("PHP.Init") to initialize PHP.
- Added MBS("PHP.ShutDown") to shutdown PHP.
- Added MBS("PHP.GetResultString") to return the output of the last PHP script as text.
- Added callback from PHP to Filemaker: FMScript(Database, ScriptName, Parameter). Use like this: MBS("PHP.Run";"echo FMScript(""MBS_Tester"",""Hello"",""Just a test"");"). The third parameter is optional.
- Added callback from PHP to Filemaker for evaluate: MBS("PHP.Run";"echo FMEvaluate(""1+2"");"). Will give 3 as result.
- Note: All text to PHP is converted to ISO-Latin1 encoding. All text coming back is interpreted as being ISO-Latin1.
- The Webview find code can now find a webview even if you have two records visible which each a webview. It will find the one for the current record. On windows you need to pass the window handle of the child window.
- Alpha 4
- On WebView functions which accept a WebViewID, you can pass the number for the ID or the name of the WebView on your layout. The plugin will check in the frontmost window if there is a webview with this name and take it. This is a shortcut which may easy break. For example it will not work if you have the dialog visible which asks you to register the plugins.
- Added MBS("WebVIew.ClickInput";WebViewID;FormName or FormIndex;InputName or InputIndex)
- Added MBS("WebView.IsLoading";WebViewID) to return true if the webpage is still being loaded.
- Added MBS("WebView.FormSubmit";WebViewID;FormName or FormIndex) to submit a form.
- Added MBS("WebView.FormReset";WebViewID;FormName or FormIndex) to reset a form.
- Added MBS("WebView.GetFormButtonValue";WebViewID;FormName or FormIndex;InputName or InputIndex) to get value of an button element.
- Added MBS("WebView.SetFormButtonValue";WebViewID;FormName or FormIndex;InputName or InputIndex;Text) to set a value of an button element.
- Added MBS("WebView.GetFormInputChecked";WebViewID;FormName or FormIndex;InputName or InputIndex) to get checked value of an input element.
- Added MBS("WebView.SetFormInputChecked";WebViewID;FormName or FormIndex;InputName or InputIndex;Boolean) to set a checked value of an input element.
- Added MBS("WebView.GetFormTextAreaValue";WebViewID;FormName or FormIndex;InputName or InputIndex) to get value of a textarea element.
- Added MBS("WebView.SetFormTextAreaValue";WebViewID;FormName or FormIndex;InputName or InputIndex;Text) to set a value of a textarea element.
- Added MBS("WebView.GetFormInputValue";WebViewID;FormName or FormIndex;InputName or InputIndex) to get value of an input element.
- Added MBS("WebView.SetFormInputValue";WebViewID;FormName or FormIndex;InputName or InputIndex;Text) to set a value of an input element.
- SetFormValue and GetFormValue are now mapped to SetFormInputValue and GetFormInputValue.
- Renamed RunJavaScriptToTitle to RunJavaScriptReturnTitle.
- Alpha 3
- Fixed an issue with a WebViewer. The wrong webviewer was found which is now fixed.
- Added MBS("WebView.GetTitle";WebViewID) to query the current document title.
- Added MBS("WebView.SetTitle";WebViewID;Text) to set the document title. Same as javascript "document.title=Text;".
- Added MBS("WebView.RunJavaScriptToTitle";WebViewID;JavaScriptSource) to run javascript. The Javascript stores result on document.title and the script will return this title string.
- Alpha 2
- SetFormValue and GetFormValue now work for Input, TextArea and Button elements.
- Container.GetDataURL now only needs one parameter.
- If you use the WebView Callbacks with an empty filename, you will call Evaluate on the text in the scriptname parameter.
- Improved Webview.Reload to no longer leak memory.
- Improved Webview.SetFormValue and GetFormValue to no longer leak memory and return better error messages. On Windows the form name is no longer used to identify the field.
- Added MBS("Container.GetDataURL"; container) to return a Tiff, PNG, GIF or JPEG image as a data url.
- Added MBS("Container.GetBase64"; container; index or type) to return the content of this data as a base64 encoded string.
- Added MBS("Container.GetCount"; container) to return the number of types inside.
- Added MBS("Container.GetType"; container; index or type) to return the type at the given index (zero based).
- Added MBS("Container.GetSize"; container; index or type) to return the size in bytes of the item at the given index (zero based).
- Added MBS("Functions") to return a list of all plugin functions.
- Added MBS("WebView.Release"; WebViewRef) to free a webview reference.
- Added MBS("WebView.FindWindowByIndex"; index) - find a window by index - Parameters: Index
- Added WebView.FindWindowByTitle - find a window by title - Parameters: textvalue
- Added WebView.Reload - reloads a webview - Parameters: WebViewRef
- Added WebView.InstallCallback - installs function to call Filemaker from Javascript - no parameters
- Added WebView.GetFormValue - get a form field text - Parameters: WebViewID, FormName, FieldName
- Added WebView.SetFormValue - get a form field text - Parameters: WebViewID, FormName, FieldName, Value
- MBS( "Container.GetHeight"; mycontainer) return the container height in pixel
- MBS( "Container.GetWidth"; mycontainer) return the container width in pixel
- MBS( "Container.GetTypes" ;mycontainer ) returns something like "FNAM, FORK, JPEG, SIZE" for a JPEG file.
- MBS( "Container.GetTotalSize" ;mycontainer ) returns the total size of the whole container
- MBS( "Container.GetTypeSize" ;mycontainer;"JPEG" ) returns the type for a given item. e.g. for a JPEG file in this container.
- MBS( "Container.GetJPEGHeight"; mycontainer) return the JPEG file height in pixel
- MBS( "Container.GetJPEGWidth"; mycontainer) return the JPEG file width in pixel
- MBS( "Container.GetJPEGHeightResolution"; mycontainer) return the JPEG file resolution for height in pixel per inch
- MBS( "Container.GetJPEGWidthResolution"; mycontainer) return the JPEG file resolution for width in pixel per inch
- Added FM.ExecuteSQLOnIdle - execute sql on next idle event - Parameters: SQLCommand; FileName; ScriptName; ColumnSep; RowSep
- Added WebView.FindByName - finds a webview by name - Parameters: WindowRef, Name
- Added WebView.RunJavaScript - runs javascript code - Parameters: WebViewRef, Codestring.
- Added Window.SetTitle - sets window title - Parameters: WindowRef, textvalue
- Added FM.ExecuteSQL.LastError - returns last error code after ExecuteSQL. e.g. 106 for a missing table, 200 for access denied or 1200 for a calculation error.
- Added FM.RunScript - triggers a script now - Parameters: filename, scriptname, textparameter
- Added FM.RunScriptLater - triggers a script in a few seconds - Parameters: seconds, filename, scriptname, textparameter
- Added FM.Evaluate - evaluates expression - Parameters: text
- Added FM.ExecuteSQL - executes sql command - Parameters: variablename, columnseparator, rowseparator
- Added FM.VariableSet - sets variable - Parameters: variablename, textvalue
- Added FM.VariableGet - gets variable - Parameters: variablename
- Added FM.VariableClear - clears variable - Parameters: variablename
- Window.HasCloseButton now works on Windows correctly.
- Changed boolean return values to be real booleans. Using GetAsBoolean should no longer be needed.
- Now FileMaker 7 Compatible!
- Run VBScripts or JScripts from FileMaker
- Trigger FileMaker Scripts via calculations
- Disable the window widgets. Turn of "Close", "Zoom", and "Minimize"
- Turn the Window Shadow on OSX on or off
- Set the Application Window Size and Position on Windows OS
Links
MBS REAL studio Plugins - Bilder aus Nickenich