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

Send properties request from MXML to java in the

$
0
0

Hi Laurent

Recently I custom a page like the chassisRackVSphere-ui,I define my chassisColumnSetContainer in the plugin.xml as the sample(Codes below).I want sent the requestedProperties "nodeUUD,fqdn,slots" to the java layer PropertySpec[].Then I can fill my data in the the columns in the GUI.

 

String[] requestedProperties = getRequestedPropertyNames(propertySpecs);

 

But the "nodeUUD,fqdn,slots" request can not sent to the my DomainChassisDataAdapter.java.So the GUI can't get the data to fill in the columns.

 

In sample of "chassisRackVSphere-ui",it defines the columns in the plugin.xml,than I don't know how the requestedProperties "name,dimensions,serverType" sent to the ChassisRackVSphereDataAdapter.java. It seems that the requestedProperties are ent to java implicitly or I can't find the explicit place.

 

Can you give same clues for sending the requestedProperties "nodeUUD,fqdn,slots" to DomainChassisDataAdapter.java.

 

   <extension id="com.ibm.ivp.nonEsxiHost.list.sampleColumns">      <!-- This extension point is created by objectViewTemplate above -->      <extendedPoint>com.ibm.ivp.nonEsxiHost.list.columns</extendedPoint>      <object>         <!-- XML representation of com.vmware.ui.lists.ColumnSetContainer -->         <items>            <!-- Chassis nodeUUID column -->            <com.vmware.ui.lists.ColumnContainer>               <uid>com.ibm.ivp.nonEsxiHost.column.nodeUUID</uid>               <dataInfo>                  <com.vmware.ui.lists.ColumnDataSourceInfo>                     <!-- Column header -->                     <headerText>#{nodeUUID}</headerText>                     <!-- Object property whose text value will be displayed (array of 1 elt) -->                     <requestedProperties>                        <String>nodeUUID</String>                     </requestedProperties>                     <!-- Use sortProperty to allow column to be sorted with header click -->                     <sortProperty>nodeUUID</sortProperty>                     <!-- Use exportProperty to allow column data to be exported -->                     <exportProperty>nodeUUID</exportProperty>                  </com.vmware.ui.lists.ColumnDataSourceInfo>               </dataInfo>            </com.vmware.ui.lists.ColumnContainer>            <!-- Chassis fqdn column -->            <com.vmware.ui.lists.ColumnContainer>               <uid>com.ibm.ivp.nonEsxiHost.column.fqdn</uid>               <dataInfo>                  <com.vmware.ui.lists.ColumnDataSourceInfo>                     <headerText>#{fqdn}</headerText>                     <requestedProperties>                        <String>fqdn</String>                     </requestedProperties>                     <exportProperty>fqdn</exportProperty>                  </com.vmware.ui.lists.ColumnDataSourceInfo>               </dataInfo>            </com.vmware.ui.lists.ColumnContainer>            <!-- Chassis slots column -->            <com.vmware.ui.lists.ColumnContainer>               <uid>com.ibm.ivp.nonEsxiHost.column.slots</uid>               <dataInfo>                  <com.vmware.ui.lists.ColumnDataSourceInfo>                     <headerText>#{slots}</headerText>                     <requestedProperties>                        <String>slots</String>                     </requestedProperties>                     <exportProperty>slots</exportProperty>                  </com.vmware.ui.lists.ColumnDataSourceInfo>               </dataInfo>            </com.vmware.ui.lists.ColumnContainer>         </items>      </object>   </extension>

 

todelete.jpg


Viewing all articles
Browse latest Browse all 2218


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