On Monday, July 27, 2015 09:26:41 AM zhukaijie wrote:
Hello, I am a freshman in the Ovirt Development.Now I'm using Ovirt UI
Plugin developping a dialog, which can get the input frome administrator
and pass the value to a VM Customer Property called "test".Using Ovirt UI
Plugin can create a dialog and get the value from administrator easily.But
I don't know how to pass the value to the VM Customer Property
you please teach me how to do it? Thank you
The UI plugins are all event driven . So when a VM is selected an event is
fired that contains the VM id. Then you can use the REST api to update the
custom properties of the VM using the VM id.
In short the UI plugin infrastructure gives you the ability to modify some of
the UI (add buttons/tabs/etc) and lets you know which entities are selected
(VM,hosts,etc). But it doesn't allow you to update those entities, you will
have to use the REST api to do that.
Devel mailing list