Passa al contenuto principale

AbortAction

Structure

AbortAction(sError)

Parameters

| Parameter | Type | Description
| sError | String | The message that will be returned to the user through a modal dialog if the procedure is called. This message is optional pass an empyt string to skip a message. |

Description

This procedure is used to stop normal event execution (if applicable), and optionally return a message to the end user. Note that certain event triggers cannot stop event execution, by nature.

The following trigger actions CAN halt event execution (meaning they can respond to AbortAction):

Event Launch

Event Finish

Event Finish Incomplete

Add Equipment

Wizard Step Change

Barcode Read

Event Cancel

The following trigger actions CANNOT stop event execution:

Event Launch (end)

After Delete

Event Finish - Equip. Begin

Repair Parts Finish Loop

Charges Finish Loop

Charges Finish Loop

After Finish - Before Print

Add Equipment (End)

After Work Order Header Add

After Work Order Detail Add

After Work Order Creation

Add Equipment (After)

Attribute Button Click

Example

If LookupEquipmentCompany = 'ABC COMPANY' Then

AbortAction('ABC COMPANY is not a valid company for CALIBRATION event. Please choose another company.')

End If

AbortAction('')

Application Compatibility

IndySoft Calibration Management, IndySoft Commercial Lab Management, IndySoft Tool Management

Also See

No related topics |