VMware {code} Community
vaibhav87
Enthusiast
Enthusiast

Unable to add tab in datacenter or any other vmwre mangaed object related item view.

Hi,

  We are developing a plugin similar as demonstrated in chassis app.

  In our Custom object we have more object view where we show host, datacenter, virtualmachine listView.

  Similarly we want to show our custom object list in datacenter, datastore and host related item.

Tried with below sample code but .

<extension id="xxx.xxx.xxx.relateditems.specs.host">

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

   <object>

      <type>HostSystem</type>

      <relationsViewId>vsphere.core.host.related</relationsViewId>

      <relationSpecs>

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

            <id>XXXForHost</id>

            <icon>#{XXX}</icon>

            <label>Test Plugin relation</label>

            <relationXXX</relation>

            <targetType>XXX:XXX</targetType>

            <listViewId>xxx.xxx.xxx.list</listViewId>

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

      </relationSpecs>

   </object>

</extension>

IN HTML CLIENT 6.7

   Is it possible to add new tab in datacenter/host/datastore related view ?

   Any other place in vmwre workspace object where i can show my custom object list ?

Reply
0 Kudos
1 Reply
_vladi_
VMware Employee
VMware Employee

Hi,

You can show relations on all managed objects as long as you specify the object type: Datacenter, HostSystem, Datastore, etc.

The code snippet above is insufficient to say what's wrong in your test scenario but my guess is that your namespace (xxx.xxx.xxx) is not declared properly.

The ChassisB sample demonstrates the whole use case you need. Its namespace is "com.vmware.samples.chassisb" and its usage is required in a number of places in the plugin.xml (search for that in the file) - especially important are the template instances where the custom object list view is defined (com.vmware.samples.chassisb.list). Otherwise you cannot use this as a viewId in the extension you mentioned.

If you are unable to spot the error please start from the ChassisB sample, see that it works, and start gradually adding your changes on top of it.

If you don't see 

Cheers,

Vladi

Reply
0 Kudos