|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Event Scripts > DataForm > OnCancel.LST script file |
This script is executed when the user presses the CANCEL button in the Data Input Form. It receives as input all the field values; it returns no data.
Options→Data input
any field name |
|
|---|---|
@EDIT |
0: insert a new record; |
@CURRENT_PROJECT |
project name |
@PROJECT... |
project name |
@SELECTED_PROJECT |
project name |
@PARENT_WINDOW_TITLE |
the title of the window the script has been called from |
@PARENT_WINDOW_HANDLE |
the handle (long integer) of the window the script has been called from |
@REVISION_PHASE |
this variable is passed if not null only; Remarks
|
Special case when a drawing is being saved:
A drawing saves its own record and that ones of the document being saved.
When saving the drawing's own record
@DRAWING_UNIQUE_ID |
= uid |
|---|---|
@DOCUMENT_UNIQUE_ID |
= 0 |
When saving any drawn document's record
@DRAWING_UNIQUE_ID |
= uid |
|---|---|
@DOCUMENT_UNIQUE_ID |
= part/assembly uid |