OpenFin Technical Reference

Summary

  • The OpenFin Plugin provides extra functionality for users when AdapTable is running in the OpenFin container

OpenFin Plugin Options

Options for managing the OpenFin Plugin

PropertyTypeDescriptionDefault
notificationTimeoutnumber | falseTimeout (in ms) for OpenFin Notifications to expire; set false for notifications not to auto-dismiss5000
onNotificationAction(event: \{ notification: any; type: string; trigger: string; result: \{ task: string; \}; \}) => anyFunction which is invoked when a button in OpenFin notification is clicked
onShowNotification(notification: any, alert?:AdaptableAlert) => anyUpdates OpenFin Notification object before it's displayed (just add/remove properties); return false to stop Notification showing
onValidationFailureInExcel'override' | 'show-notification' | 'show-undo-notification'Action to perform when a data change in Live Excel report triggers Prevent Edit Alert failure
showAdaptableAlertsAsNotificationsbooleanConverts AdapTable Alerts configured to display in popup as OpenFin Notificationstrue
showAppIconInNotificationstrueIcon to show in Notification - uses the value supplied in UserInterfaceOptionstrue
throttleTimenumberHow long (in ms) AdapTable throttles when sending data update to OpenFin2000

OpenFin API

The OpenFinAPI section of AdapTable contains many functions for run-time access to the OpenFin Plugin.

Caution

Some of these methods are intended for internal use only - and have been marked as such.

MethodReturnsDescription
getCurrentLiveOpenFinReport()OpenFinReport | undefinedRetrieves the OpenFin currently sending live data to Excel
getOpenFinState()OpenFinState | undefinedRetrieves the OpenFin section of System State
getOpenFinThrottleTime()number | undefinedRetrieves the Throttle time for live updates
getPluginOptions()OpenFinPluginOptionsRetrieves the OpenFinPlugOptions provided in OpenFin Plugin
isOpenFinAvailable()booleanWhether OpenFin is available
isOpenFinRunning()booleanWhether OpenFin is currently running
showNotification(notification)voidShows a notification in OpenFin
showNotificationForAlert(alert)voidDisplays Alert as an OpenFin Notification
startLiveData(OpenFinReport)voidRuns Report in Excel as Live Report (so updates as AdapTable ticks)
stopLiveData()voidStops live data; data will no longer be sent from AdapTable to Excel

Accessing the API

Because OpenFin is available via a Plugin, the easiest way to access the Api is as follows:

const openFinApi = adaptableApi.pluginsApi.getOpenFinPluginApi();