Article Details
Id:20757
Product:finPOWER Connect
Type:FIX
Version:4.00.04
Opened:14/09/2023
Closed:27/09/2023
Released:05/12/2023
Job: J032043

HTML Widgets; Account Financial control; "Payments" button now hidden if data is not present

The Account Financial control, such as found on the financial page of the New Account HTML Widget, will display a Payments button if the allowPaymentSchedule option was set to True when the control was initialised.

The data displayed also relies on the includePaymentSchedule parameter of finAccountCalc.ToHtmlWidgetJsonString being True, otherwise there is no data to display.

Previously, the parameter being False would have resulted in a JavaScript error when the User clicked on the Payments button.

The Account Financial control has been updated now that if the includePaymentSchedule parameter of finAccountCalc.ToHtmlWidgetJsonString is False, the Payments button will be hidden, regardless of the allowPaymentSchedule option specified when initialising the control.

This change prevents any JavaScript errors from occuring, and supports older versions of HTML Widgets which make use of the Account Financial control, where their code predates the includePaymentSchedule parameter of finAccountCalc.ToHtmlWidgetJsonString.