OnCheckin.LST script file

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Event Scripts > Revision >

OnCheckin.LST script file

Description

It is executed when checking in a document.

Using this script it is possible to control the way a document is checked in, basing on rules that can be implemented in the script itself.

Activation

Options→Revisions

Input

@DOCUMENT_UNIQUE_ID

uid of the doc to checkin

@IS_LINKED_DOCUMENT

the currently processed document is 0: the selected/active document; 1: a linked document;
It allows the script to understand if it is called when checking-in the main active document (or the currently selected document in the browser) or if the check-in happens because a related document is being processed by the Drawing ↔ Part Link Mode manager.

Remarks

The script is called only as a notification of the event; it cannot interrupt the checkin process.
To interrupt che checkin process please refer to OnBeforeCheckin.LST script.

See also

OnUnCheckin.LST
OnBeforeCheckin.LST

Example

.VBSCRIPT
Sub Main
 DBWInit(TRUE)
 uid = DBWInput("@DOCUMENT_UNIQUE_ID")
 DBWMsgBox "OnCheckin uid=" & uid
End Sub