[ovirt-devel] Hello devel at ovirt.org

Alexander Wels awels at redhat.com
Thu Jul 30 15:58:30 UTC 2015


On Monday, July 27, 2015 09:26:41 AM zhukaijie wrote:
> Hello,
>     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 "test".Could
> you please teach me how to do it? Thank you

The UI plugins are all event driven [1]. 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.

[1] http://www.ovirt.org/Features/UIPlugins

> _______________________________________________
> Devel mailing list
> Devel at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/devel




More information about the Devel mailing list