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

Script Editor

If you are a BV30 user, you have access to System menu > Designer Tools > Template Scripts. In the Template Scripts grid, you can view all saved template scripts and expand the detail view to see all templates linked to the specific script.

Open a script in the Script Editor by selecting the Script ID hyperlink:

TemplateScripts

In the Script Editor, you can write a script and add methods to the script that can be used in templates. For example, in custom buttons or events. One script can contain one, or several, different public functions/events (public voids).

When a function in a script is going to be used in a template, you first need to link the script to the template workbook (see Scripts).

Thereafter, the different public methods within the template script can be used in the template, either when managing Custom Buttons - Function or Events

The scripts in the Script Editor are written in C#. In Script Editor, you get instant feedback if the code is incorrect. Hovering over a red-marked string that is incorrect provides additional information about the error.

Right-clicking and selecting Command Palette (or pressing F1 on your keyboard) returns all available commands that can be used in the editor area. Or, use a keyboard shortcut like Ctrl+F to search for specific strings in the script.

scriptexample

In the Script editor you have some useful code snippets in the right panel that can be used to help you write you script.

You can either:

  • drag-and-drop a code snippet into the script area - the snippet will be dropped where the marker is
  • copy a code snippet by clicking the copy button and then paste it in script area by pressing Ctrl+V

Custom Code Snippets:

  • Add your own code snippet by pressing the + button to the right in the Code snippets heading
  • Delete any custom code snippet by pressing the trash-can icon

Published:

Script Editor

If you are a BV30 user, you have access to System menu > Designer Tools > Template Scripts. In the Template Scripts grid, you can view all saved template scripts and expand the detail view to see all templates linked to the specific script.

Open a script in the Script Editor by selecting the Script ID hyperlink:

TemplateScripts

In the Script Editor, you can write a script and add methods to the script that can be used in templates. For example, in custom buttons or events. One script can contain one, or several, different public functions/events (public voids).

When a function in a script is going to be used in a template, you first need to link the script to the template workbook (see Scripts).

Thereafter, the different public methods within the template script can be used in the template, either when managing Custom Buttons - Function or Events

The scripts in the Script Editor are written in C#. In Script Editor, you get instant feedback if the code is incorrect. Hovering over a red-marked string that is incorrect provides additional information about the error.

Right-clicking and selecting Command Palette (or pressing F1 on your keyboard) returns all available commands that can be used in the editor area. Or, use a keyboard shortcut like Ctrl+F to search for specific strings in the script.

scriptexample

In the Script editor you have some useful code snippets in the right panel that can be used to help you write you script.

You can either:

  • drag-and-drop a code snippet into the script area - the snippet will be dropped where the marker is
  • copy a code snippet by clicking the copy button and then paste it in script area by pressing Ctrl+V

Custom Code Snippets:

  • Add your own code snippet by pressing the + button to the right in the Code snippets heading
  • Delete any custom code snippet by pressing the trash-can icon

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