hub.eb?material_id=767
Currency

Xe Currency Converter

Retrieve exchange rates between different currencies.

Overview

The Xe Currency Converter Data Connector uses the Xe.com API to return the current exchange rates between two or more currencies.

Once this has been installed and added to a Form, you can access this Data Connector in the Form's server event scripts using: connectors.verjio.xecurrencyconverter.

  • xecurrencyconverter.convertFrom converts a value in one currency to one or more destination currencies. For example, you may want to convert a price in GBP into EUR, USD and JPY.
  • xecurrencyconverter.convertTo converts a value from one or more currencies to a single destination currency.

Code example:

// Convert 1400 CNY, HKD and JPY to GBP
var result = connectors.verjio.xecurrencyconverter.convertTo(
  ['CNY', 'HKD', 'JPY'], 'GBP',
  1400
);

For comprehensive information on how to use and develop applications with this Data Connector please refer to the Support section.

The Installation section has instructions on installing it into your Workspace.

Complete JavaScript API documentation for this Data Connector can be found in the Documentation section.

Documentation

Installation

Install this Data Connector into your Workspace in the Verj.io Studio:

  1. Right-click on the location in the Entity Tree you want the Data Connector to be added.
  2. Select New >  Data Connector from the context menu.
  3. In the resulting dialog, select this Data Connector from the list of available Data Connectors.
  4. Click OK to download it into your Workspace.

Once the Data Connector is installed into your Workspace, it can be added to any number of Forms:

  1. Open the Form by double-clicking it in the Entity Tree.
  2. Drag the downloaded Data Connector from the Entity Tree into the Form's  Data Connectors View.

Before this Data Connector can connect to the XE Currency Data API at runtime, it must be configured with your XE Currency Data API account ID and API key.

For comprehensive information on how to customise, use, and configure Data Connectors, please refer to the Support section.

Support

Xe Currency Converter Support

Data Connector Support

Xe Support

Compatible Verj.io Versions

FromV5.13

Support

Supported by Ebase.