Article Details
Id:13595
Product:finPOWER Connect
Type:NEW
Version:3.00.00
Opened:12/02/2016
Closed:12/02/2016
Released:06/07/2016
Job: J016923

Scripts; Template Text page now available

The Scripts form now has a "Template Text" page.

This page allows text to be entered and saved against the Script. It can then be retrieved and used by the Script as follows:

strTemp = finBL.Scripts(ScriptInfo.ScriptId).TemplateText

This property was primarily added for HTML Widget type Scripts to define HTML and JavaScript content for the Widget but can now be used by any type of Script.

NOTE: Currently the editor for the Template Text does not provide any syntax colouring for HTML and JavaScript. Script developers may wish to copy and paste text between the Scripts form and their preferred editor rather than editing directly in the Template Text editor.