360Works Foreign Exchange User Guide

360Works currency conversion plugin for FileMaker based off of 360Works' currency exchange service. Copyright 2006. 360Works

Installation

Requirements

FileMaker version 7 or higher.

Java Virtual Machine (JVM) version 1.4.2 or later. If you are running a JVM earlier than 1.4.2, you should upgrade. Download a JVM from http://www.java.com/en/download/.

Windows, or Mac OS X version 10.4 or higher.

Note to intel Mac users: running this plugin under Rosetta is not supported. Upgrade to FileMaker 8.5 to run our plugin in native Intel mode.

Install Steps

Drag the Plugin from the MAC or WIN folder into your FileMaker extensions, and restart FileMaker. Opening the demo file that ships with this plugin should display the version and license information. If the plugin does not load correctly, double-check that you meet the system requirements.

Install steps for FileMaker Web Publishing Engine / Instant Web Publishing

For using the Instant Web Publishing from the FileMaker Pro client software, no special setup is needed. Just install the plugin with FileMaker normally and it will work with Instant Web Publishing.

For installing into the Web Publishing Engine with FileMaker Server Advanced, drag the Plugin from the MAC or WIN folder into the FileMaker Server/Web Publishing/publishing-engine/wpc/Plugins folder. Restart FileMaker Web Publishing by restarting the computer, and now the plugins should be ready to go.

Note that due to a bug which we and other plugin vendors have reported to FileMaker, web plugins do not work in FileMaker Web Publishing Engine 8.0v4 on Mac OS X. You will need to use an earlier version, like 8.0v3. The Windows FileMaker Server 8.0v4 does not have this bug, and will work correctly.

The easiest way to test whether the plugin is working is to have a calculation which calls the version function of the plugin, and display that on an IWP layout. If it shows "?", then the plugin is not working. If it shows a number, then the plugin has been installed successfully.

Registering the Plugin

After FileMaker starts up with the Plugin installed, you can enter your registration code in the FileMaker preferences dialog. Open FileMaker preferences, click on the Plug-ins tab, select the 360Works Foreign Exchange, and click the Configure button. You will only need to do this once on a given machine.

Alternately, you can use the registration function to register the plugin during a startup script.

Feedback

We love to hear your feedback! If you are experiencing problems with this plugin, or have a feature request, or are happy with it, we'd appreciate hearing about it. Send us a message on our website, or email us!

Function Summary

Function Detail

forexConvert ( from ; to ; amount )

Converts a numerical amount using the exchange forexGetRate between the specified countries. Countries can be specified with either the 3-letter country code or the country name. Amounts must be in the format of integer or decimal numbers. No text is allowed.

Parameters:
from - the base country
to - the target country
amount - the amount to forexConvert
Returns: number - the converted amount or a negative error code upon failure

forexGetCountryCode ( country )

Returns the country code for a country name.

Parameters:
country - the country name
Returns: text - the country code or a negative error code upon failure

forexGetMonetaryUnit ( country )

Returns the monetary unit of the specified country. Countries can be specified by either their country code or country name.

Parameters:
country - the country code or country name
Returns: text - the monetary unit of the specified country or a negative error code upon failure

forexGetRate ( from ; to )

Returns the exchange forexGetRate for converting amounts to and from the specified countries. Countries can be specified with either the 3-letter country code or the country name.

Parameters:
from - the base country
to - the target country
Returns: number - the exchange forexGetRate from the base country to the target country or a negative error code upon failure

forexLastErrorCode

Returns the last error code resulting from a failure in the system. If no error has been recorded, returns 0.

Returns: number - the last error code or 0

forexLastErrorMessage

Returns a user-friendly text message of the last error the system received. If no error has been recorded, nothing is returned.

Returns: text - the last error message

forexLastUpdate

Returns a the last time the currency exchange rates were updated. The format corresponds to FileMaker's timestamp format of: MM/dd/yyyy HH:mm:ss AM/PM"

Returns: text - a timestamp formatted result or a negative error code upon failure

forexRegister ( licenseKey ; registeredTo )

Registers the Plugin.

Parameters:
licenseKey - a valid license key string, or the literal string "DEMO" to run in demo mode.
registeredTo - the company name for the license key used.
Returns: 1 on success, or "ERROR" on failure.

forexVersion

Returns the current forexVersion number of the plugin.

Returns: number - the plugin's current forexVersion