HomeSeer / Plugin-SDK

Plugin development kit for the 4th major edition of the HomeSeer platform.
https://www.nuget.org/packages/HomeSeer-PluginSDK/
GNU Affero General Public License v3.0
21 stars 5 forks source link

SelectListView doesn't work for Dropdown (but does for RadioList) #81

Closed stefxx closed 4 years ago

stefxx commented 4 years ago

Environment and System Config

Describe the bug SelectListView doesn't work with ESelectListType.DropDown. It does work with ESelectListType.RadioList

Steps to Reproduce I have this function in my Plugin to configure my device:

Public Overrides Function GetJuiDeviceConfigPage(deviceRef As Integer) As String
    Dim PageID = "DeviceConfig"
    Dim JUIPage As Page = PageFactory.CreateDeviceConfigPage(PageID, "Plugin Config").Page
    JUIPage.AddView(New SelectListView(PageID & "-Label", "Label",
        New List(Of String)({"Option 1", "Option 2", "Option 3"}),
        New List(Of String)({"1", "2", "3"}),
        ESelectListType.DropDown))
    Return JUIPage.ToJsonString
End Function

The result is just the Label, nothing else: image

It works when I use exactly the same code, but change Dropdown to RadioList:

Public Overrides Function GetJuiDeviceConfigPage(deviceRef As Integer) As String
    Dim PageID = "DeviceConfig"
    Dim JUIPage As Page = PageFactory.CreateDeviceConfigPage(PageID, "Plugin Config").Page
    JUIPage.AddView(New SelectListView(PageID & "-Label", "Label",
        New List(Of String)({"Option 1", "Option 2", "Option 3"}),
        New List(Of String)({"1", "2", "3"}),
        ESelectListType.RadioList))
    Return JUIPage.ToJsonString
End Function

image

What do I need to do to get the Dropdown? I guess this is a bug? Thanks!

spudwebb commented 4 years ago

I can replicate this bug, and I logged it as HS-548

stefxx commented 4 years ago

Thanks!

jldubz commented 4 years ago

Referenced by PSDK-38 and PSDK-39

rjhelmke commented 4 years ago

Fixed in HS build 4.0.3.5. The next public release that contains this fix will be 4.0.4.0. If you need this fix sooner let me know and I can post a test build.

stefxx commented 4 years ago

Hi,

I wouldn’t mind a beta to test and finalize my plugin, but only if it isn’t too much trouble.

Thanks!

Regards, Stefan.

From: rjhdakota notifications@github.com Sent: vrijdag 20 maart 2020 18:27 To: HomeSeer/Plugin-SDK Plugin-SDK@noreply.github.com Cc: stefxx sddroog@hotmail.com; Author author@noreply.github.com Subject: Re: [HomeSeer/Plugin-SDK] SelectListView doesn't work for Dropdown (but does for RadioList) (#81)

Fixed in HS build 4.0.3.5. The next public release that contains this fix will be 4.0.4.0. If you need this fix sooner let me know and I can post a test build.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/HomeSeer/Plugin-SDK/issues/81#issuecomment-601821646, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEZNAZBOCCYCYLHCWJ22TCDRIORPJANCNFSM4K2TCMJA.

rjhelmke commented 4 years ago

post removed since link is no longer valid.

stefxx commented 4 years ago

Thanks!

From: rjhdakota notifications@github.com Sent: zaterdag 21 maart 2020 20:59 To: HomeSeer/Plugin-SDK Plugin-SDK@noreply.github.com Cc: stefxx sddroog@hotmail.com; Author author@noreply.github.com Subject: Re: [HomeSeer/Plugin-SDK] SelectListView doesn't work for Dropdown (but does for RadioList) (#81)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/HomeSeer/Plugin-SDK/issues/81#issuecomment-602095807, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEZNAZALKFJQJGWNCYQLZGDRIUMBXANCNFSM4K2TCMJA.