Article Details
Id:13243
Product:finPOWER Connect
Type:FIX
Version:2.03.02
Opened:26/08/2015
Closed:31/08/2015
Released:01/09/2015
Job: J016152

HTML Viewer Common Form functions; updated to make backwards compatible with finPOWER Connect 2.2.x and below

In version 2.3.0 a change was made to the HTML Viewer common form to make it smarter; by attempting to auto-detect the content type of the "html" sent through, as quite often it was XML. However, sending a HTML fragment causes it to be treated as XML.

This could be corrected by sending through the "fileType" parameter as "HTML". However, this means changing existing script code.

To make it easier for existing scripts a change has been made to Common Forms as follows:

Note, this applies to "General (User Interface)" type scripts.

Updated the following functions, returning them to equivalent functionality pre version 2.3.0.

userInterface.CommonForms.ShowHtmlPopup()
userInterface.CommonForms.ShowHtmlViewer()

Added the following functions, as per those from version 2.3.0 and higher.

userInterface.CommonForms.ShowHtmlPopupSmart()
userInterface.CommonForms.ShowHtmlViewerSmart()

Note, if you have utilised this functionality in version 2.3.0 and higher you will need to switch to using the newer "Smart" functions.