Article Details
Id:21721
Product:finPOWER Connect
Type:FIX
Version:4.01.02
Opened:30/07/2024
Closed:30/07/2024
Released:12/09/2024
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.