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

How to Filter Property Constraint in HTML5 Plugin Implementation

$
0
0

Hi Folks,

 

I am trying to filter extension by Property Value using the "com.vmware.data.query.PropertyConstraint" <nestedConstraint> tag in "plugin.xml",

 

where a PropertyProviderAdapter is being implemented which returns the Property Value as boolean and matches the Property Name as String,

 

based on that the extension needs to be rendered, but in HTML5 these doesn't seem to work, please suggest any plausible ways to implement the

 

extension filter in HTML5 plugin.

 

Here is an sample example.

 

<extension id="com.vmware.samples.actions.vmActionSet">

           <extendedPoint>vise.actions.sets</extendedPoint>

                <object>

                     <actions>

                          <com.vmware.actionsfw.ActionSpec>

                               <uid>com.vmware.samples.actions.myVmAction1</uid>

                               <label>#{action1.label}</label>

                               <command className="com.vmware.samples.actions.VmActionCommand"/>

                          </com.vmware.actionsfw.ActionSpec>

                     </actions>

                </object>

           <metadata>

                     <objectType>Datastore</objectType>

                          <propertyConditions>

                               <com.vmware.data.query.CompositeConstraint>

                               <nestedConstraints>

                             

                                  <com.vmware.data.query.PropertyConstraint>

                                         <propertyName>summary.type</propertyName>

                                         <comparator>EQUALS</comparator>

                                 <comparableValue>

                                         <String>VMFS</String>

                                   </comparableValue>

                               </com.vmware.data.query.PropertyConstraint>

 

                               <com.vmware.data.query.PropertyConstraint>

                                    <propertyName>sampleDatastore</propertyName>

                                               <comparator>EQUALS</comparator>

                                         <comparableValue>

                                              <String>true</String>

                                         </comparableValue>

                               </com.vmware.data.query.PropertyConstraint>

 

                     </nestedConstraints>

                <conjoiner>AND</conjoiner>

           </com.vmware.data.query.CompositeConstraint>

      </propertyConditions>

   </metadata>

</extension>

 

Here sampleDatastore Returning true but filter is not working. Please provide some guidance.

 

Thanks in advance :-)

 

 

 


Viewing all articles
Browse latest Browse all 2218

Trending Articles



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