Article Details
Id:12565
Product:finPOWER Connect
Type:NEW
Version:2.02.04
Opened:12/01/2015
Closed:12/01/2015
Released:13/02/2015
Job: J014734

Summary Pages; New "SystemColour" HTML template added

A new "SystemColour" HTML template is available for use in Summary Page (Version 2) type Scripts.

This allows the following system colours to be retrieved:

  • Window
    • This is the Window background colour used in finPOWER Connect. This varies based on tthe selected theme.

The following Script sample shows how to use this template to set the background colour of a Summary Page to match the Window background so that a Page Set's HTML Panel content appears to blend into the Page Set form:

Dim sb As finHtmlSummaryPage2StringBuilder

sb = finBL.CreateHtmlSummaryPage2StringBuilder()

With sb
  .Initialise(iseSummaryPageTarget.Form)
  .HtmlHeaderBegin()
  .HtmlHeaderEnd("", "background-color:{{systemColour|Window}}")

  .Append("{{Icon|Account}}")

  .HtmlFinalise()
End With

htmlPanel1.Text = sb.ToString(True)