Article Details
Id:17623
Product:finPOWER Connect
Type:FIX
Version:3.03.04
Opened:18/11/2020
Closed:18/11/2020
Released:02/12/2020
Job: J025523

HTML Widgets; widget.DisableCloseButton; When child modal is open, notification is called in both parent and child forms

HTML Widgets can intercept the modal window's close button (the X in the top-right) using the widget.DisableCloseButton() method.

However, if more than one HTML Widget was open, all other HTML Widgets would also receive a "FormClose" notification.

This was demonstrated on the New Individual Client wizard (running from within finPOWER Connect desktop). When editing Client Statistics, closing the Client Statistics form via the form close button in the top-right corner prompts to not lose changes. However, once the Client Statistics form is closed, a similar prompt is displayed on the New Individual Client form as if you've clicked the form close button on this form too.

When running from finPOWER Connect Cloud, the issue shows itself in a different way. The warning message "userinterface.Modal.Close: Could not remove modal from stack since it is not the top-most item. Modals should always be closed last to first." is displayed.

NOTE: The above situation has never appeared in a release version and was discovered in development. This article is simply to alert HTML Widget developers outside of Intersoft Systems to the issue.