|
|
Re: ComboBox for selecting a channel value [message #1779425 is a reply to message #1779422] |
Sun, 07 January 2018 09:53   |
Eclipse User |
|
|
|
Hi Simon,
No I think this not what I'am looking for. The ConfigOptionProvider is only used for configuration. But I need the selection at runtime, where the ThingHandler provides the list. So It should work like this way: I want use a "Selection" element in the sitemap without the mappings, the selection element should than get the list of options from the channel.
But I think, currently there is no such an mechanism available.
Regards,
Michael
|
|
|
Re: ComboBox for selecting a channel value [message #1779471 is a reply to message #1779425] |
Mon, 08 January 2018 12:13   |
Eclipse User |
|
|
|
So you want to have a channel with a set of options to choose from and this set of selectable options should be dynamic (i.e. given by the handler)?
Have a look at the DynamicStateDescriptionProvider - it lets you "hook" in and puts the original state description in your hands so you can return a modified one.
PS: I just realized I've got to update the JavaDoc on the website again. It's not yet listed there...
|
|
|
|
Powered by
FUDForum. Page generated in 0.22020 seconds