Article Details
Id:18908
Product:finPOWER Connect
Type:NEW
Version:3.04.03
Opened:20/12/2021
Closed:20/12/2021
Released:01/02/2022
Job: J028073

Business Layer; JsonIndent and JsonIndentHtml Functions added to ISTextUtilities

The following Functions have been added to ISTextUtilities:

  • JsonIndent(rawJson)
  • JsonIndentHtml(rawJson, fontFamilyName)

They allow raw JSON text to be formatted, including line breaks, and indenting. JsonIndent allows for a simple text format, whereas JsonIndentHtml also adds HTML information to be displayed in a web page. This optionally accepts a fontFamilyName Parameter, which can be retrieved from ISControlHandler (when available). E.g.:

ISControlHandler.Fonts(iseUiFont.ScriptCode).FontFamily.Name

The standard system now uses these Functions in the Service Log form and HTML Widget (when viewing Request / Response information where JSON has been used).