VMware {code} Community
RakeshBandari
Contributor
Contributor

Handle section changed event on the Object workspace

Hi ,

Iam new to the vCenter Web Client sdk .I have a requirement that  i need to populate the data for a custom tab in the related objects of Datastore .I have got uptothe point showing the GUI part as i attached in hte Png file.

I need to Populate the values w.r.to the Datastore selected in the Grid .Iam pretty sure that vmware has a way to handle this.Can you guy please let me know how to do that .

Thanks,
rakesh  

0 Kudos
2 Replies
laurentsd
VMware Employee
VMware Employee

The Related Items tab can only be populated with relations to that particular objects.

You can follow the chassisB sample which demonstrates how to establish relations between custom chassis, rack objects and vSphere host objects.

0 Kudos
RakeshBandari
Contributor
Contributor

Hi Laurantsd,

Thanks for your reply .

I have looked at the ChassisB sample and established the relation as follows.

<extension id="com.hitachi.sie.ucp.relateditems.specs.datastoreDetail">

   <extendedPoint>vise.relateditems.specs</extendedPoint>

   <object>

   <type>Datastore</type>

   <!--relationsViewId>vsphere.core.datastoreDetail.related</relationsViewId-->

   <relationSpecs>

   <com.vmware.ui.relateditems.model.RelationSpec>

   <id>datastoreDetailForDatastore</id>

   <icon>#{test}</icon>

   <label>UCP Advisor</label>

   <relation>datastoredetail</relation>

   <targetType>test:DatastoreDetail</targetType>

   <listViewId>com.test.datastoreDetail.list</listViewId>

   </com.vmware.ui.relateditems.model.RelationSpec>

   </relationSpecs>

   </object>

   </extension>

I have created  a new object DatastoreDetail with the properties and added the new relationDescriptor in my testadapter class.

new RelationDescriptor("Datastore" , "datastoredetail", "test:DatastoreDetail"),

does this work ?

Or do i have to do anything more .

0 Kudos