Script Buttons

Inserting a button that executes a script

Product line

Standard

|

Expert

Operating mode

CLOUD ABO

|

ON-PREMISES

Modules

Services & CRM

Budget & Phases

Purchases

Resource Planning

Business Intelligence

Created: 16.11.2016
Updated: 30.12.2022 | Added custom renderer note.

Starting with Vertec 6.5.0.22, buttons on pages and lists can be Custom renderer shown.

In Vertec versions from 6.1 onwards it is already possible to use a button in the pages via customizing, which starts a script registered in Vertec.

The ScriptButton has the following properties:

  • The ScriptName property determines the script to be executed.

The following rules apply:

  • The button is inactive if the script is not present.
  • The button is inactive if the classes configured in the script do not match the active entry.
  • The button is inactive if you do not have user rights to execute the script.

Example

In Vertec a script is registered for entering presets on projects:

With the following customizing code we now add a button on the main page of the project to which the script is linked:

<Page Override=”Project”>
     <ScriptButton Text=”Enter presets” 
               ScriptName=”Enter Defaults” 
               FlexWidth=”0” HorizontalAlignment=”Right” />
</Page>

On the interface, the script can now be called or executed directly by clicking on the button Enter Default:

Bitte wählen Sie Ihren Standort