VMware {code} Community
prachiR
Contributor
Contributor

Conditional property filter on vmware view is not working

Hi,
 
We are trying to add related host objects tab for clusters. For this we are trying to filter the host on the sphere host view to display our hosts.
For this we tried using the ConditionalProperty tag using our property in plugin.xml and noticed that it is not filtering based on this property. After debugging we realized its not hitting our property provider adapter. The snippet of our plugin.xml looks like this:
 
<com.vmware.ui.relateditems.model.RelationSpec>
        <id>com.xxx.cluster.related.hosts</id>
         <icon>#{hostNavigatorIcon}</icon>
          <label>#{xyz}</label>
          <relation>host</relation>
          <conditionalProperty>xxx:isXXX</conditionalProperty>
          <targetType>HostSystem</targetType>
          <listViewId>vsphere.core.host.list</listViewId>
  </com.vmware.ui.relateditems.model.RelationSpec>
 
Can you please provide some insight to this. Are we missing something here? 
Thanks in advance for any help on this.
 
Prachi 
Reply
0 Kudos
1 Reply
Denis_Chorbadzh
VMware Employee
VMware Employee

Hi Prachi,

 

Thank you for your feedback.

Could you please try using a DataProviderAdapter instead of PropertyProviderAdapter. The usage is demonstarted in the ChassisA sample plugin (available in vSphere 6.5U1 SDK)

I believe it is the right one for related objects views.

 

Best Regards,

Denis

Reply
0 Kudos