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

How to check datamodel type in data response event of DataByConstraint request in vsphere web client plugin development

$
0
0

Hello, I am new in vsphere web client plugin development.

I need to dispatch multiple DataByConstraintRequest (let's say of A & B Data model class) within a single action script class. But to handle data response events, we use

 

[ResponseHandler(name="{com.vmware.data.query.events.DataByConstraintRequest.RESPONSE_ID}")]

public function onVmListRetrieved(request:DataByConstraintRequest,

result:ArrayCollection):void {

// result is an ArrayCollection of MyVmData objects

}

 

Here how should I come to know that result variable is either for A or B Data Model class. (including the case result may be an empty array collection)

 

In case of DataByModel request, we have separate data response events for data model class but I couldn't find the same for DataByConstraint.


Viewing all articles
Browse latest Browse all 2218

Trending Articles



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