Supported JavaScript APIs on Relativity's main window

Relativity provides some supported JavaScript APIs on its main window. These APIs are rooted in an object called relativity, and the functions and properties defined within them are intended to be useful to Relativity Application developers' Custom Pages.

Relativity's main window does contain properties and functions directly on the window and even within the relativity object which are not specified here. Anything not specifically called out in this topic should be considered volatile and is subject to change or removal without warning; please avoid using them. All properties and functions on the main window which are not on the relativity object fall into this category, and should not be used. Notable examples that you might be using currently are listed here.

Surface listing

Copy
relativity
     .getApplicationPath()
     .getCurrencySymbol()
     .getInstanceGuid()
     .getKeplerApplicationPath()
     .getRelativityApplicationWebResourceFile()
     .getRelativityVersion()
     .getRestApplicationPath()
     .config
          .applicationPath
          .keplerApplicationPath
          .restApplicationPath
     .debug
          .data
          .info
     .internal
          .getApi()
          .getClickTrackingElements()
          .isActive()
          .isReady()
          .maximizeContent()
          .openSupport()
          .resetSessionExpirationTimeout()
          .restoreContent()
          .toggleTabStrip()
          .sessionActivityEvents
          .errorApi
               .accessDenied()
               .init()
               .noView()
               .permissionDenied()
               .workspaceVersion()
     .navigation
          .navigate()
          .navigateToForms()
          .navigateToListPage()
          .navigateToReview()                        
          .open()
          .peekCurrentUrl()
          .peekPreviousUrl()
          .popAndNavigateToPreviousUrl()
          .pushStateAndRecent()
          .redirect()
          .redirectHandler()
          .toSearchOrDocument()
          .toTag()

Details

Object Supported Functions Supported Properties
relativity
  • getApplicationPath
  • getCurrencySymbol
  • getInstanceGuid
  • getKeplerApplicationPath
  • getRelativityApplicationWebResourceFile
  • getRelativityVersion
  • getRestApplicationPath

(While these properties themselves are supported, they are objects which may contain some properties which are not supported)

relativity.config  
  • applicationPath
  • keplerApplicationPath
  • restApplicationPath
relativity.debug  
  • data
  • info
relativity.internal
  • getApi
  • getClickTrackingElements
  • isActive
  • isReady
  • maximizeContent
  • openSupport
  • resetSessionExpirationTimeout
  • restoreContent
  • toggleTabStrip
  • errorApi (see below)
  • sessionActivityEvents
relativity.internal.errorApi
  • accessDenied
  • init
  • noView
  • permissionDenied
  • workspaceVersion
 
relativity.navigation
  • navigate
  • navigateToForms
  • navigateToListPage
  • navigateToReview
  • open
  • peekCurrentUrl
  • peekPreviousUrl
  • popAndNavigateToPreviousUrl
  • pushStateAndRecent
  • redirect
  • redirectHandler
  • toSearchOrDocument
  • toTag