Our Use case is as follows:
- We have created a plugin where we have extended the list view as suggested.
- Our plugin displays entities such as VMs , vApps, etc.. (customized objects as explained in Chassis examples such as Samples:VirtualMachine , Samples:VirtualApp)
- In our plugin.xml we have defined a template for displaying the list of above created virtual machines.
Sample snippet of the xml is as follows
<templateInstance id="com.###.###.lists.samples.allVirtualMachine">
<templateId>vsphere.core.inventorylist.objectCollectionTemplate</templateId>
<variable name="namespace" value="com.###.###.virtualmachineCollection"/>
<variable name="title" value="#{vmLabel}"/>
<variablename="icon"value="#{vmicon}"/>
<variable name="objectType" value="samples:VirtualMachine"/>
<variable name="listViewId" value="com.###.###.virtualmachine.list"/>
<variable name="parentUid" value="com.###.###.chassisAppCategory"/>
</templateInstance>
On the basis of above template our virtual machines got displayed successfully in the object navigator however we need to change the icon dynamically according to a property value (like Power ON/OFF) of virtualmachine.
How can we change the icon dynamically for powerOn ViratualMachine and PowerOFF virtual machine in the object navigator List of Virtual machines because it is picked from static template described above in the plugin XML?
Is it possible to update the plugin.xml dynamically or is there other way to achieve it.