Naming scripts

Dexterity automatically enters script names for scripts when the Script Editor opens. These names closely follow the naming conventions used for products like Microsoft Dynamics GP, and are based upon the type of script and where it’s attached. You can use the automatically-generated names or your own script names.

The following table describes the conventions used for the automatically-generated script names. The descriptions use the following standards:

Script type

Name and components

Example

Form scripts

FormName_FORM_Type

- FormName – The name of the form.

- Type – The type of form script. The type can be one of the following:

PRE Form pre script

POST Form post script

This is the name of the form post script for the Sellers form.

Sellers_FORM_POST

Window scripts

WindowName_WIN_Type

- WindowName – The name of the window.

- Type – The type of window script. The type can be one of the following:

ACT Window activation script

PRE Window pre script

POST Window post script

PRINT Window print script

This is the name of window pre script for the Sellers window.

Sellers_WIN_PRE

Field scripts

WindowName FieldName_Type

- WindowName – The name of the window the field is in.

- FieldName – The name of the field.

- Type – The type of field script. The type can be one of the following:

PRE Field pre script

CHG Field change script

POST Field post script

CONTEXTMENU Field context menu script

MOUSE_ENTER Field mouse enter script

MOUSE_EXIT Field mouse exit script

DBLCLICK Tree view or list view double-click script

STATECLICK Tree view or list view state click script

ITEMCHANGED List view item changed script

COLLAPSE Tree view collapse script

EXPAND Tree view expand script

This is the name of the field post script for the Seller ID field in the Sellers window.

Sellers Seller ID_POST

Procedures

PROCEDURE_Number

- Number  The number of the procedure in the application dictionary, incremented sequentially.

This is the name of the third procedure script in the application dictionary.

PROCEDURE_3

Functions

FUNCTION_Number

- Number  The number of the function in the application dictionary, incremented sequentially.

This is the name of the third function script in the application dictionary.

FUNCTION_3

Form-level procedures

FormName_FORM_PROCEDURE_Number

- FormName – The name of the form.

- Number  The number of the procedure in the form, incremented sequentially.

This is the name of the first form-level procedure for the Sellers form.

Sellers FORM_PROCEDURE_1

Form-level functions

FormName_FORM_FUNCTION_Number

- FormName – The name of the form.

- Number  The number of the function in the form, incremented sequentially.

This is the name of the first form-level function for the Sellers form.

Sellers FORM_FUNCTION_1

Command scripts

FormName_COMMAND_CommandName

- FormName – The name of the form the command is associated with.

- CommandName – The name of the command.

This is the name of the script for the CMD_BuyersReport command defined for the Main Menu form.

Main Menu_COMMAND_CMD_BuyersReport

Menu scripts

FormName_MENU_MenuName_ITEM_ItemName

- FormName – The name of the form the menu is associated with.

- MenuName – The name of the menu.

- ItemName – The name of the item in the menu.

This is the name of the script for the Activate item in the Actions menu of the Sellers form.

Sellers_MENU_Actions_ITEM_Activate

Scrolling window line scripts

ScrollingWindowName SCROLL_Type

- ScrollingWindowName – The name of the scrolling window.

- Type – The type of scrolling window script. The type can be one of the following:

PRE Scrolling window line pre script

CHG Scrolling window line change script

POST Scrolling window line post script

FILL Scrolling window line fill script

INS Scrolling window line insert script

DEL Scrolling window line delete script

This is the name of the line pre script for the Seller_Lookup scrolling window.

Seller_Lookup SCROLL_PRE


 


Documentation Feedback