Skip to main content
insightsoftware Documentation insightsoftware Documentation
{%article.title%}
Published:
Was this article helpful?
0 out of 0 found this helpful

Scripts

In addition to parameters in PARAM, column A, and row 1, a template script can be connected to the template. The connected script can contain several different functions/methods which can be used in the template when creating Custom Buttons or Events. The script is created in Script Editor and is written in C# language.

You can link the script in the following Template Design grids:

  • Reports > Design Mode > Report Templates *DESIGN

  • Input > Design Mode > Input Templates *DESIGN

The Input or Report Templates *DESIGN page displays the Script column, as shown below:

Note: When linking the script like this in the Save dialog, it will first only be linked to the WIP version of the template, so it will not be visible as linked to the template if looking in the above template design grid. In order for the template script to be linked to the published template, then the WIP version needs to be published, or you need to link the script in the grid above.

In the Template Design Custom Buttons right panel, different ribbon buttons can be created and linked to different template script functions or standard scripts. The custom buttons and which functions are used for each button is saved in the SCRIPTS worksheet, and managed and viewed in the Custom Buttons right panel. For more information, see:

In template design, Events right panel, different events can be linked to the template. Each event is either connected to a function/method in linked script or a procedure and the events are saved in EVENTS worksheet, and managed and viewed in Events right panel. For more information, see Events.

Published:

Scripts

In addition to parameters in PARAM, column A, and row 1, a template script can be connected to the template. The connected script can contain several different functions/methods which can be used in the template when creating Custom Buttons or Events. The script is created in Script Editor and is written in C# language.

You can link the script in the following Template Design grids:

  • Reports > Design Mode > Report Templates *DESIGN

  • Input > Design Mode > Input Templates *DESIGN

The Input or Report Templates *DESIGN page displays the Script column, as shown below:

Note: When linking the script like this in the Save dialog, it will first only be linked to the WIP version of the template, so it will not be visible as linked to the template if looking in the above template design grid. In order for the template script to be linked to the published template, then the WIP version needs to be published, or you need to link the script in the grid above.

In the Template Design Custom Buttons right panel, different ribbon buttons can be created and linked to different template script functions or standard scripts. The custom buttons and which functions are used for each button is saved in the SCRIPTS worksheet, and managed and viewed in the Custom Buttons right panel. For more information, see:

In template design, Events right panel, different events can be linked to the template. Each event is either connected to a function/method in linked script or a procedure and the events are saved in EVENTS worksheet, and managed and viewed in Events right panel. For more information, see Events.

For an optimal Community experience, Please view on Desktop
Powered by Zendesk