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

Menu items not showing up for custom objects

$
0
0

Hi,

I created a list view that is similar to the the chassisA/chassisB html example. The list is correctly showing our custom objects. However, edit/delete options that were also added in the same fashion as in the chassisA/chassisB example are not showing up. I can see that my browser is making a request to "actionsService/menu/?menuType=vise.menus.context,vise.menus.context.solutionMenus", when right-clicking on the object.

In the body of this request my browser is sending the uuid of the object which is of the form my_scheme:my_company:my_object_type:object_uuid . This request is returning an empty list and in the logs I can see a "Warning: com.vmware.vise.mvc.controllers.ActionsServiceController: Object my_scheme:my_company:my_object_type:object_uuid could not be found."

After a long time of experimentation, I noticed that when I manually replace my_scheme in this request with "urn:vri" it is giving me the correct menu items and no warning is logged.

Any idea why the service doesn't find the menu items? 

From my experiments, I can see that there are services which have a "ObjectReferenceService" (such as the ActionsController of the chassisB sample) which CAN'T find my objects with the my_scheme prefix but CAN find the objects if I use the "urn:vri" prefix.

Thanks for the help!


Viewing all articles
Browse latest Browse all 2218

Trending Articles



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