ipushpull Technical Reference

Summary

  • ipushpull Plugin Options helps to configure ipushpull at design-time
  • ipushpull API provides run-time access to ipushpull

ipushpull Plugin Options

Options for managing the ipushpull Plugin:

PropertyTypeDescriptionDefault
autoLoginbooleanWhether AdapTable should try log in to ipushpull automatically at start-upfalse
cellStyles'lightTheme' | 'darkTheme'The color theme to use when styling data pushed to ipushpull pagesderived from Adaptable's current theme (lightTheme or darkTheme)
includeSystemReportsbooleanWhether AdapTable will include System Reports (e.g. 'All Data', 'Selected Cells' etc) in the ipushpull toolbar dropdowntrue
ippConfigIPushPullConfigThe config required to run ipushpull; use your ipushpull credentials
passwordstringThe user's ipushpull password; if supplied, pre-populates the login screen's password textbox
throttleTimenumberHow many miliseconds AdapTable should throttle when sending data updates to ipushpull2000
usernamestringUser's ipushpull user name (usually email address); if supplied, pre-populates the login screen's username textbox

ipushpull API

The ipushpull API section of AdapTable contains many functions for run-time access to the ipushull integration:

MethodReturnsDescription
addNewIPushPullPage(folder, page)voidAdds a new page to ipushpull using given name in the supplied folder
getAutoLogin()booleanRetrieves AutoLogin from ipushpull options; if true AdapTable will automatically log user in to ipushpull at start-up
getCurrentIPushPullPassword()string | undefinedRetrieves Password from ipushpull state -- AFTER someone logs in
getCurrentIPushPullUsername()string | undefinedRetrieves Username from ipushpull state - AFTER someone logs in
getCurrentLiveIPushPullReport()IPushPullReport | undefinedRetrieves current ipushpull Report from ipushpull state; A Report contains Name, Folder and ipushpull Page
getFolderIdForName(folderName)numberGets the Id of the ipushpull folder / Domain with the given name
getIPushPullDomains()IPushPullDomain[]Retrieves all the ipushpull domain to which the current user has access
getIPushPullInstance()anyRetrieves the current ipushpull instance (if one has been provided by the User at design time in ipushpull state)
getIPushPullPassword()string | undefinedRetrieves Password from ipushpull options (if provided)
getIPushPullThrottleTime()number | undefinedRetrieves Throttle Time from ipushpull State; how often a Live report will update ipushpull (if data changes)
getIPushPullUsername()string | undefinedRetrieves Username from ipushpull options (if provided)
getPagesForIPushPullDomain(domain)string[]Retrieves all pages in given ipushpull domain
includeSystemReports()booleanWhether to display System Reports in ipushpull toolbar
isIPushPullAvailable()boolean | undefinedChecks if an ipushpull instance has been provided by the user
isIPushPullLiveDataRunning()boolean | undefinedChecks if a report is sending Live Data to ipushpull
isIPushPullReportLive(report)booleanChecks if given report is currently 'live' (i.e. sending updates as data changes)
isIPushPullRunning()boolean | undefinedChecks to see if ipushpull is running (i.e. a user has successfully logged in)
loginToIPushPull(userName, password)voidLogins in user to ipushpull with given credentials; if successful ipushpull toolbar will display full set of controls
logoutFromIPushPull()voidLogs out the current user from ipushpull (changes ipushpull toolbar to show Login button)
sendSnapshot(iPushPullReport)voidPublishes an ipushpull Report as a one-off export (i.e. with no live data)
setIPushPullDomains(IPushPullDomains)voidSets given Domains as those for the current User
setIPushPullInstance(ippInstance)voidSets the current ipushpull instance - this method should not generally be used.
setIPushPullThrottleTime(throttleTime)voidSets Throttle time for ipushpull; how often a Live report will update ipushpull (if data changes)
showIPushPullPopup()voidOpens iPushPullPopup (though its currently empty!)
startLiveData(iPushPullReport)voidPublishes ipushpull Report as Live Data; any changes to underlying data in report will be sent to ipushpull
stopLiveData()voidPauses current Live Data report

Accessing API

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

const ipushpullApi = adaptableApi.pluginsApi.getipushpullPluginApi();

AdapTable Resources