Hi,
I would like to understand the use of NavigationRequest - I saw this example in the vmware samples where we can create custom links whose click can navigate to object specific pages
/////////////////////////////////////////////////////////////////////////////////////////////
private function onLinkButtonClick(click:MouseEvent):void {
// Jump to the Settings view
var event:NavigationRequest = new NavigationRequest();
event.targetViewUid = "com.vmware.samples.chassisCollection3.domainView"
//event.context = ?????
dispatchEvent(event);
}
/////////////////////////////////////////////////////////////////////////////////////////////
The above navigation results in the global page - https://localhost:9443/vsphere-client/#extensionId=com.vmware.samples.chassisCollection3.domainView
However, there are other specific pages to which we would like navigation links. For example, in the above example, if we wanted to navigate to a specific context (say the chassis => summary page) like the following "https://localhost:9443/vsphere-client/#extensionId=com.vmware.samples.chassis.summary;context=com.vmware.core.model%3A%3…", then setting up the NavigationRequest seems to be tricky. It appears that it involves setting up the "event.context" to the "right" IResourceReference object.
My question is => How does one get access to the IResourceReference reference to a custom object in a view which does not carry the reference to the custom object. Can one derive the IResourceReference from the URI of a custom object? Please highlight the possibilities here.
Any help is appreciated.
Thank you