Quantcast
Channel: VMware Communities : All Content - vSphere Management SDK
Viewing all articles
Browse latest Browse all 1860

Issue accessing vsphere object from Web Client UI Layer

$
0
0

Hello,

 

I'm currently working to create a custom plugin for Equallogic, using vsphere 5.1 Web Client development enviroment. I'm trying to access a vsphere object or object id's as reference to process specific request pertaining to it.

 

Currrently for each of the Flex mxml view logic we have the data request logic implemented in the Action script mediator class. The mediator class implements IContextObjectHolder and set context Object is set by the framework with the current inventory object or null.

 

So

 

1. Is there a mechanism to reference custom inventory objects or to set the _contextObject to a specific type for  requestingData pertaining to that object type as opposed to the context.? This would be really helpful for developers to implement custom business logic.

 

 

  /** Called by the framework with the current inventory object or null */
   public function set contextObject(value:Object):void {
      _contextObject = IResourceReference(value);
      if (_contextObject == null) {
         // A null contextObject means that the view is being cleared
         clearData();
         return;
      }
      // Once contextObject is set the view can be initialized with the object data.
      requestData();
   }

 

2. Secondly While using the data access manager we create a DataModel , using the Model Tag

    [Model(type="VirtualMachine")] . Is there a reference to the list of properties & objects that a developer can query for these certain objects.

 

Inputs for these would really helpful and much appreciated either from Vmware or developer community !

 

Thanks!!

 

 

 


Viewing all articles
Browse latest Browse all 1860

Trending Articles



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