Article Details
Id:19076
Product:finPOWER Connect
Type:FIX
Version:3.04.04
Opened:16/03/2022
Closed:07/06/2022
Released:09/06/2022
Job: J028452
High Importance
Breaking Change

HTML Widgets; Entering data for User Defined page data loses any reference to the "UserN" field on the database and sets it to Null

Parameter Sets which are used to define custom data on forms such as the Accounts form, User Defined page, may define the "Index" of a User Defined Field to map to.

This means that when a record such as a Client is saved, information stored in the UserData database field as XML is also saved to the corresponding User0-User9 field on the database. This is useful for querying and reporting.

An issue with the HTML Widget version of the User Defined entry pages mean that, even though the information was being saved as XML in the UserData field, any of the User0-User8 fields were being set to Null.

Also, when adding new records, the UserDefinedIndex was not being set either.

The following HTML Widgets have been updated to cater for User Defined Indexes:

  • HtmlWidget_ClientNew_Individual
    • Version: 1.16 (07/06/2022)
  • HtmlWidget_ClientNew_Organisation
    • Version: 1.14 (07/06/2022)
  • HtmlWidget_ClientEdit
    • Version: 1.18 (07/06/2022)
  • HtmlWidget_AccountNew
    • Version: 1.18 (07/06/2022)
  • HtmlWidget_AccountEdit
    • Version: 1.08 (07/06/2022)
  • HtmlWidget_SecurityStmtEdit
    • Version: 1.06 (07/06/2022)
  • HtmlWidget_ExternalPartyEdit
    • Version: 1.09 (07/06/2022)
    • NOTE: The editable User Data is actually for the linked Client. External Party User Defined fields are for scripting only
  • HtmlWidget_SecurityStmtItem
    • Version: 1.12 (07/06/2022)
    • WARNING: This is a breaking change. If someone has customised the existing Security Statement Item Edit widget, they will need to make the "Template Text" change listed at the bottom of this article
  • HtmlWidget_PoolEdit
    • Version: 1.05 (07/06/2022)

The following HTML Widgets were updated for code-consistency, even though they have no concept of User Defined Indexes:

  • HtmlWidget_AuditSearch
    • Version: 1.03 (07/06/2022)
  • HtmlWidget_DocumentCreate
    • Version: 1.04 (07/06/2022)
  • HtmlWidget_DocumentExecute
    • Version: 1.02 (07/06/2022)
  • HtmlWidget_SecuritisationAllocation
    • Version: 1.03 (07/06/2022)

The following changes were required to the Script Code:

'.UserData.UpdateFromSimpleJsonString.UserDataJson)
.UserData.UpdateFromSimpleJsonString(parameters.UserDataJson)

And the following to the Template Text:

// C.phUserDefined.GetParameterValues();
C.phUserDefined.GetParameterValuesWithTypes();