FIX4.01.02 · Released 12 September 2024
FIXfinPOWER Connect
Released in
4.01.02
12 September 2024
  1. Opened30 Jul
  2. Closed30 Jul
  3. Released12 Sep
Article 21721 Job J033989

Scripts; Summary Page (version 2); HTML Templates containing breakable characters may display incorrectly if noBreakChars is specified on their column

Under certain circumstances, HTML Templates used in Summary Pages may incorrectly encode text as HTML.

For instance, the below example would create a caption containing nobr tabs, e.g. "This is a non<nobr>-<nobr>breaking checkbox caption":

With SummaryTableMain
  ' Initialise
  .TableClass = iseSummaryTableClass.Information

  .Columns.AddText(10).NoBreakChars = 32
  .Columns.AddText()

  With .Rows
	' Apply HTML Widget Styling
	.AddSectionHeading2("Test heading")
    .AddCheckBox("This is a non-breaking checkbox caption", true)
  End With
End With

To avoid this without potentially breaking other code, a simple test is now done when rendering the Summary Table; If the cell content is entirely an HTML Widget, i.e., it starts with "

 Variable or Template '"' is not recognised.

", the noBreakChars logic is not applied.