VMware {code} Community
RoyHSIEH
Contributor
Contributor

Is it possible to transfer value instead of uid to actioncontroller?

Hi, im using html bridge and i'm use on chassisB example.

in the sample, Rack show name and location but i will call actioncontroller by uid, 

 

now rack list can call by remote does not need to call from service hashmap(but in my service it still need to provide a temp uid for it).

 

at the list, it can do some actions, and this action will call actionconrtoller. It will trandfer uid to actioncontroller.

 

but actually i do not have hashmap to store this info, i just need an information from list(name and location)

 

my question is, is it possible transfer both name, location instead of uid? 

0 Kudos
1 Reply
laurentsd
VMware Employee
VMware Employee

Can you be more specific with some code snippet? 

If I understand correctly your question my answer is the following:

- The invoke() method in action controllers can only receive the objectId(s) of the selected object(s) for a particular action (see targets parameter)

-  You can return any result in a Map as shown in the sample

0 Kudos