Contents

 
Home
ASPRunner Professional 7.1 manual
Prev Page Next Page
 
 

Event Editor

 

Events are the fragements of ASP code executed before or after record was added, edited, deleted, when new user registers etc. Therefore events allow you to define some actions that will be activated when certain conditions are met.

Here are a few examples of some common events:

· send an email which contains the data from a new record, or shows changes to an existing record;
· save data in another table;
· check record uniqueness;
· show related to current record info.

Events can be divided into global and table events. Global events are not specific to any table or view. Table events belong to a table or a view.

Add an event

1. Go to the Events page.

2. Select an event from the tree in the left pane. To show events with the actual code only, click the show_actual_code_bt button. To filter events by the event name, use text field under the events tree.

After you selected the event, on the right pane you will see definition of the function that implements selected event and description of the function parameters. To hide the parameters description click hide_bt button.

events

3. Add your own ASP code or click add_action_bt button to choose one of the predefined actions. More info about predefined actions and sample events with code snippets. Read what common parameters you can use in the events.

Event editor's toolbar description:

Button

Description

add_action_bt

Allows to add one of the predefined actions.

erase_bt

Erases the event code.

undo_bt

Reverses the last operation.

redo_bt

Reverses the last "Undo" operation.

check_syntax_bt

Checks the event code syntax.

search_bt

Opens Search and Replace dialog that allows to search and replace within an event or within all events.

find_all_bt

Opens Find All dialog.

4. Choose one of the predefined actions.

step11-1

5. Modify sample event code by putting the correct values instead of the values colored in red.

Example: in the sample code below insert:

· email address instead of "test@test.com";
· email subject instead of "Sample subject";
· email message instead of "Hello there" and "Best regards".

step11

yellowbulbNote: You can add several actions to the event.

To edit the event, select event from the tree and modify ASP code. To delete the event, select event from the tree and click erase_bt button.

Intellisense

Version 6 introduces intellisense in Event Editor. Intellisense is a convenient way to access the functions' descriptions and variables. The Events Editor recognizes the functions and variables and will pop up the function description or the list of available variables to choose from.

Here are a few examples:

Data Access Layer, database field names

intellisense_dal

Javascript API functions

intellisense_jscontrols

Field names

intellisense_values

If you want to add your own functions to intellisense, check Intellisense config files.

Converted from CHM to HTML with chm2web Standard 2.85 (unicode)