Options for Customizing Asset Definitions with Javascript

NI InsightCM™ 3.1 Help

Edition Date: July 2017

Part Number: 374498D-01

»View Product Info
Download Help (Windows Only)

NI InsightCM allows you to call a custom Javascript file to override default behavior in the NI InsightCM web application.

Use the ExtJS class ExtensionClass to call the following functions:

Function Values Behavior
  • assetTree
  • assetNode
  • operatingStateNames
  • callback
Called when a user adds a new operating state to an asset. Use this function to create default enter, exit, and collection triggers on the operating state before saving. The callback must be called with the new operating state as a parameter.
  • assetTree
  • newNodes
Called after a user adds new assets of the given type to the tree. Use this function to alter the new assets before saving, or to add children to the new assets.
getTriggerCustomViewClass() triggerType Use this function to define a custom view for operating state trigger configuration. This function returns an ExtJS classname or null to use the default view.
getCustomConfigTabs() Returns an array of objects in the following format:
Title: <Tab Title>,
Type: <ExtJS Classname>
Use this function to define custom tabs to add to the asset configuration.
Note  The extension class can also define other custom functions which can be used in validation and UX rules. Place extension class in the following directory to be automatically loaded at application startup: <InstallDrive >:\Program Files\National Instruments\InsightCM Server 3.0\Web\custom.

Related Information

Properties Tab on Asset Node Definition Editor


Not Helpful