Article Details
Id:18710
Product:finPOWER Connect
Type:FIX
Version:3.04.02
Opened:19/10/2021
Closed:20/10/2021
Released:02/12/2021
Job: J027598

HTML Widgets; JavaScript Intellisense can append leading spaces (actually Tabs) to control names

The Script Editor allows a special form of intellisense for Widget controls.

Most of our system-supplied HTML Widgets use an object "C", defined at the top of the Template Text's Script block to house controls. These are generally indented by 2 spaces (which is what pressing the Tab key inserts).

However, if code has been pasted from an external source and, instead of being prefixed by 2 spaces, the control name is prefixed by a Tab character (ASCII 9), using intellisense (E.g., typing "C." to being up a list of members) will appear to sort the listed members in a random order (not alphabetical) and selecting one of the items that is not in alphabetical order (generally at the top of the list) will insert spaces after the "C." text before the control name. These spaces are actually Tab characters.

The intellisense has been updated to cater for the use of Tabs.