Skip to content
Discussion options

You must be logged in to vote

If I'm understanding the question correctly you want to open a view of an object that you've created in a plugin in a Preview window. You were able to do this using the legacy API using the code that you provided.

The equivalent of the code that you've provided in our current API would be this:

const objectPath = await openmct.objects.getOriginalObjectPath({namespace: `${namespace}`, key: `${key}`});
const previewAction = openmct.actions.getAction('preview');

previewAction.invoke(objectPath);

The namespace and key come from the object id. In legacy Open MCT object ids were strings of the form "namespace:key", but in our current API objects are uniquely identified by an "identifier" objec…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@akhna10x
Comment options

Answer selected by jvigliotta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants