OpenFinApi

Provides run-time access to the OpenFin Plugin

TypeScript
export interface

Methods

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

Method Details

getCurrentLiveOpenFinReport

Retrieves the OpenFin currently sending live data to Excel

TypeScript
getCurrentLiveOpenFinReport(): OpenFinReport | undefined;
Returns

OpenFinReport | undefined

getOpenFinState

Retrieves the OpenFin section of System State

TypeScript
getOpenFinState(): OpenFinState | undefined;
Returns

OpenFinState | undefined

getOpenFinThrottleTime

Retrieves the Throttle time for live updates

TypeScript
getOpenFinThrottleTime(): number | undefined;
Returns

number | undefined

getPluginOptions

Retrieves the OpenFinPlugOptions provided in OpenFin Plugin

TypeScript
getPluginOptions(): OpenFinPluginOptions;
Returns

OpenFinPluginOptions

isOpenFinAvailable

Whether OpenFin is available

TypeScript
isOpenFinAvailable(): boolean;
Returns

boolean

isOpenFinRunning

Whether OpenFin is currently running

TypeScript
isOpenFinRunning(): boolean;
Returns

boolean

showNotification

Shows a notification in OpenFin

TypeScript
showNotification(notification: any): void;
Parameters
ParameterTypeDescription
notificationany
Returns

void

showNotificationForAlert

Displays Alert as an OpenFin Notification

TypeScript
showNotificationForAlert(alert: AdaptableAlert): void;
Parameters
ParameterTypeDescription
alertAdaptableAlertAlert to display
Returns

void

startLiveData

Runs Report in Excel as Live Report (so updates as AdapTable ticks)

TypeScript
startLiveData(OpenFinReport: OpenFinReport): void;
Parameters
ParameterTypeDescription
OpenFinReportOpenFinReportReport to Run
Returns

void

stopLiveData

Stops live data; data will no longer be sent from AdapTable to Excel

TypeScript
stopLiveData(): void;
Returns

void