Article Details
Id:20076
Product:finPOWER Connect
Type:FIX
Version:4.00.02
Opened:20/03/2023
Closed:22/03/2023
Released:27/06/2023
Job: J030714
High Importance

HTML Widgets; Grid with groupings or sorted columns selecting incorrect rows in Task Manager 2 after actioning

Performing Task Manager 2 actions such as updating a number of Workflows' flag colour could result in the incorrect rows being selected after the update has been performed (the correct items are however updated correctly).

This was due to a fundamental flaw in the way that selected rows were retained prior to the grid being refreshed and applied after the refresh.

The following methods are no longer used for these grids:

  • GetSelectedRowIndexes()
  • SetSelectedRowIndexes(indexes)

Instead, the following two, new, grid methods are now used:

  • GetSelectedRowDetailsFromUniqueProperty(propertyName, [defaultActiveRow])
  • SetSelectedRowDetailsFromUniqueProperty(propertyName, array, [clearExisting])

This means that a unique key (in the case of Task Manager folders, the "UniqueId" property) is used to identify and restore selected rows leading to consistent results.

NOTE: When calling the grid.SetSelectedRowIndexes() method for a grid with sorted or grouped columns, a web browser console warning is now emitted to indicate "This method is known to have issues with sorted grids"

The following HTML Widgets have been updated:

  • HtmlWidget_TaskManagerFolder_MonitoredAccounts
    • Version: 1.03 (22/03/2023)
  • HtmlWidget_TaskManagerFolder_Workflows
    • Version: 1.02 (22/03/2023)
  • HtmlWidget_TaskManagerFolder_AccountApplications
    • Version: 1.02 (22/03/2023)
  • HtmlWidget_TaskManagerFolder_Tasks
    • Version: 1.02 (22/03/2023)

NOTE: The above HTML Widgets are used to implement the various types of system folders, e.g., "Filter Monitored Accounts".

HTML Widget help has been updated to include these new methods and also to give a warning against the SetSelectedRowIndexes() to warn not to use for sortable or groupable grids.