Quantcast
Channel: VMware Communities : Discussion List - vSphere Client SDK
Viewing all articles
Browse latest Browse all 2218

Extending a vSphere Object List View for chassisRackVSphere

$
0
0

I am trying to add a new column to existing VM list view by referring below code snippet from

https://pubs.vmware.com/vsphere-55/index.jsp?topic=%2Fcom.vmware.wcsdk.pg.doc%2FListExtensions_Chapter.12.3.html

 

 

Below is the sample code given in chassisRackVSphere-ui  sample for the same.

 

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

<!-- Example of a VM list extension (not related to chassis and racks)

   Using the extension point vsphere.core.vm.list.columns we add a 'hostname'

   column to VM Objects tab.

    -->

   <extension id="com.vmware.samples.vm.columns">

      <extendedPoint>vsphere.core.vm.list.columns</extendedPoint>

      <object>

         <!-- XML representation of com.vmware.ui.lists.ColumnSetContainer -->

         <items>

            <com.vmware.ui.lists.ColumnContainer>

               <uid>com.vmware.samples.vm.column.hostname</uid>

               <dataInfo>

                  <com.vmware.ui.lists.ColumnDataSourceInfo>

                      <headerText>#{vmList.hostNameColumn}</headerText>

                      <!-- Object property whose text value will be displayed (array of 1 elt) -->

                      <requestedProperties>

                        <String>hostName</String>

                     </requestedProperties>

                     <sortProperty>hostName</sortProperty>

                     <exportProperty>hostName</exportProperty>

                  </com.vmware.ui.lists.ColumnDataSourceInfo>

               </dataInfo>

            </com.vmware.ui.lists.ColumnContainer>

         </items>

       </object>

   </extension>

 

--------------------------------------------------------------------------------------------------------------------------

 

 

 

 

 

MY Query :-

 

I am trying to add a column to existing VM list view to display related Chassis Name (Custom) Object.

However when i tried to do that using <String>chassisName</String> i  am not getting proper query at java layer .

Can you please suggest a code snippet for plugin.xml which defines this querySpec.

 

As i want to display property/value in VMList view from my Chassis plugin.

 

Thanks,

Abhishek


Viewing all articles
Browse latest Browse all 2218

Trending Articles



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