Previous Topic

Next Topic

Book Contents

Book Index

Script Events

Navigator > Setup > Company > Scripts > Script Events - OR -

Accredo > Script > Script Events

Set MaxBasic Scripts to run when an event occurs or an action is performed. For example, you can use script events to:

See Events Documentation for a list of available events for each form. You can also press Ctrl+F1 on an open form to see the Automation Documentation for the form. The Events for the form are listed at the end of the Automation Documentation.

Note: If an Event Script is run when a script is being recorded, any Print statements in the Event Script will be suppressed and Print outputs will not be shown, as the Script Recorder uses the Output window for the recorded script.

Module

Defaults to All Modules. Select a Module to display events for a single module.

Events Grid

Module

Select the Module Code that the Event will be triggered in.

Class

Select the Class (for example, data, a report or a form) that will trigger the Event.

Type

Select the Type of action that will trigger the event.

Script Name

The name of the script file to run when the Event occurs.

Inactive

Selected, the script will not be run for the event.

Event

Displays the Event. This can be selected by the Module, Class and Type fields. You can also click Lookup (F2) to select the event from a cascading menu.

For example, selecting:

  • Module - Order Entry
  • Class - OESalesOrderEntryForm
  • Type - BeforeSave

tells Accredo to run a script before the OE Sales Order Entry Form is saved. See Company Events and Form Events.

Toolbar

ToolbarExpand

Expand Toolbar (Alt+F9)

Expand the toolbar to give access to all toolbar options. Press Esc to close the expanded toolbar.

Edit (F11)

Edit an existing script event.

Insert (F4)

Opens Event. Click Select File (F2) to browse the Script folder to select a file. You can also make an event Inactive.

Event Name, Select a form or grid and event from the drop-down.

Script Name, the name of the script file to run when the event occurs.

Once a script event is set, it will run when the event occurs.

Delete (F3)

Delete a script event.

Print (Ctrl+P)

Print the script event actions listing.

Customise (Alt+F5)

Opens Customise Fields, you can customise the fields visible in the grid.

Refresh List (F5)

Reloads changes other Users may have made.

Script Viewer

Edit Script (F12)

Open a selected script in Script Editor.

SelectOne

Inactivate

Inactivate the selected script event.

Inactivate All

Inactivate all script events.

UnselectOne

Activate

Activate the selected script event.

Activate All

Activate all script events.

In This Section

Company Events

Form Events

Data Events

Events Sequences

Passing Information Between Events

Events Documentation