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 with GridView not working properly in ActionPage #314

Closed hem-bhagat-tark closed 1 year ago

hem-bhagat-tark commented 2 years ago

Environment

HomeSeer

OS

Windows

HS Version

v4.2.14

Development

PSDK Version

v1.4.2.0

Language

C#

IDE

Visual Studio 2022

Dev OS

Windows

Plugin

I am developing a plugin

Problem

Description

I am creating an ActionType from the plugin I am developing. In my ActionType.OnNewAction I have initialized the page as follows,

gridRow.AddItem(...select list view 1)
gridView.AddRow(gridRow)
pageFactory.WithView(gridView)
ConfigPage = pageFactory.Page

In ActionType.OnConfigItemUpdate when the select list view 1 changes, I want to add two new select list views in the same grid row, so I have done as follows

// Again creating an already existing select list view
gridRow.AddItem(...select list view 1)
// Adding new select list views
gridRow.AddItem(...select list view 2)
gridRow.AddItem(...select list view 3)
gridView.AddRow(gridRow)
pageFactory.WithView(gridView)
ConfigPage = pageFactory.Page
return true

In ActionType.OnConfigItemUpdate when the select list view 2 or select list view 3 changes, I have just returned true.

This is where I am facing the issue. The data of select list view 2 and 3 is saved and we can check that using <select list view 2>.Selection. But the select list view 2 and select list view 3 does not reflect this in UI. That is even though they have a value selected, the selected value is not shown in UI.

What am I doing wrong here?

Expected Behavior

The UI should reflect the selected value in select list 2 and select list 3.

Steps to Reproduce

Same as description

Screenshots

Not applicable

Logs

Not applicable

spudwebb commented 2 years ago

I can reproduce the problem, and I think I know what is causing it. Thanks for reporting.

Tracked as PSDK-291

spudwebb commented 1 year ago

Fixed in v1.4.3

hem-bhagat-tark commented 1 year ago

@spudwebb Any estimate for the release of v1.4.3?

alexbk66 commented 1 year ago

@hem-bhagat-tark https://docs.homeseer.com/products/software/hs4-smart-home-software/hs4-release-notes-downloads/hs4-release-4-2-17-0

hem-bhagat-tark commented 1 year ago

The Releases section is still showing v1.4.2 as the latest release.

image