Quantcast
Channel: VMware Communities : Discussion List - VMware {code}
Viewing all articles
Browse latest Browse all 2738

vSphere 7.0 htmlClientSdk.htmlClientSdk.app.getContextObjects()[0] is undefined

$
0
0

Hi,

I used vsphere 6.7 sdk , like this:

 

  navigateToSummaryView(objectId): void {

    const selectedTarget = this.selectedTargets;

    this.storagepluginService.htmlClientSdk.app.navigateTo({

      targetViewId: 'com.xxxxxxx.summary',

      objectId: objectId,

      customData: { objectId, selectedTarget }

    });

  }

 

and i want to get "objectId" from "targetViewId",

so i use 2 htmlClientSdk :

1. htmlClientSdk.app.getNavigationData()

2. htmlClientSdk.htmlClientSdk.app.getContextObjects()[0]

they can worked.

But 1. (getNavigationData) have probleme , they can't ued by browser's Refresh/Next Page/Back Page

they will make getNavigationData() to be undefined

so I used 2. getContextObjects()[0].

 

But In vSphere 7.0, [2. getContextObjects()[0]] can't work

So I need to know, have any way to fix this?


Viewing all articles
Browse latest Browse all 2738

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>