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 :-)
Clik here to view.