Reloading or Refreshing the Root Object #7911
Replies: 2 comments 3 replies
-
Hi @GUI-Botox, Thanks for reaching out. This looks like a limitation of our API. Although dynamic composition providers are indeed supported, they are not supported at the root level, which is a miss on our part. The example code you provided for reloading the root object is a great attempt at forcing a reload. The reload action you used is actually aimed at reloading views, rather than domain object models. The equivalent method for refreshing domain object models is So, what I'll do is create an issue to fix our root object provider, to support adding and removing root objects after startup, and improve some of our documentation around this generally. In the mean-time, the following non-API code will force a refresh of the tree and pick up any new roots - openmct.layout.$refs.mctTree.loadRoot(); |
Beta Was this translation helpful? Give feedback.
-
@akhenry Is there any equivalent way to refresh telemetry charts and dashboards? I would like to programmatically trigger the refetching of both historical and real-time telemetry data with new parameters (set externally). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to refresh the Root Object such that if a new object is added to the Root Object, the object tree will refresh?
For example, having a plugin that is installed after Open MCT is running in the window which adds to the Root Object composition doesn't trigger a refresh of the Object Tree on the left navigation pane. However, searching for a telemetry object associated with installed plugin after Open MCT runtime shows that the plugin successfully added to the Root and the telemetry object is available. This is the case with installing the YAMCS telemetry plugin after Open MCT is running, then searching for a telemetry object in the search bar or console logging the Root Object after running an install command.
Beta Was this translation helpful? Give feedback.
All reactions