Script Buttons

Insert a button that executes a script

Product line

Standard

|

Expert

Operating mode

Cloud Suite

|

ON-PREMISES

Modules

Services & CRM

Budget & Phases

Purchases

Resource Planning

Business Intelligence

Created: 16.11.2016
Machine translated
Updated: 30.12.2022 | Added Custom Renderer note.

Starting with Vertec 6.5.0.22, buttons can be shown on pages and in lists via Custom Renderer.

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 the user does not have the right to run the script.

Example

In Vertec, a script is registered for entering settings 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="Vorgaben eintragen" 
               ScriptName="Vorgaben eintragen" 
               FlexWidth="0" HorizontalAlignment="Right" />
</Page>

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