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

Managing Objects Outside of Related Objects tab

$
0
0



So I want to be able to manage objects outside of the related objects tab. I've looked at the Chassis B sample code and I think I generally understand the purpose of Related Objects and how to configure them in the service layer and in the UI plugin.xml configuration.


I have a use case where i want to get access to all child Thing objects in my main object, and make them accessible via the Manage tab, likely in a table view with actions.  I see i can provide a public getThings() accessor in my class implementation, and add logic in the getProperty method to return a list of Things, via a 'thing' property. Likewise in the UI (chassis-summary), I can create some javascript logic to get the Things via namespace buildDataUrl call passing a list of properties including 'thing'. 


I've tried doing the above steps in a similar fashion to display my Things.  I do get an object back, but the value seems to be a generic object, not my Thing.  How would I get my Thing object, and access its properties?  Is their some way to 'cast' the object, like in Java.


Thanks,


Eric


Viewing all articles
Browse latest Browse all 2218

Trending Articles



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