Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 193198

Passing in Additional parameters in DataProvider Adapter not supported ?

$
0
0

I want to send the _contextObject of a vsphere object (HostSystem) in DataProvider Adapter as an parameter in the dispatch request for which I'm doing the following:

 

Flex layer:

var requestInfo:DataRequestInfo =
            new DataRequestInfo(DataUpdateSpec.newImplicitInstance());
var testDBMR:DataByModelRequest = DataByModelRequest.newInstance(_contextObject,ChassisSummaryDetails,requestInfo);
var ctxObj:Object=Object(_contextObject);
testDBMR.addPropertyParameter("myContextUID",ctxObj);
      // Dispatch an event to fetch _contextObject data from the server
      // along the specified model.
      dispatchEvent(testDBMR);
How can I retreive this additional parameter in my getData-method in service layer? Any insight into this would be highly appreciated .
Thanks!
The documentation mentions :
Method Detail
##
addPropertyParameter()method
public function addPropertyParameter(property:String, parameter:Object):void

 

 

Adds a parameter to be passed to Data Service when retrieving a certain property.

Parameters


property:String— The property name in form of relationship.relationship.property.

parameter:Object— The parameter value to pass; a single parameter can be passed for a particular property.

Viewing all articles
Browse latest Browse all 193198

Trending Articles