OnPreviewFileNotFound.LST script file

<< Click to Display Table of Contents >>

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

OnPreviewFileNotFound.LST script file

Description

If existing in the \LST directory, it is invoked by DBWorks in order to get the two lines of text to be displayed in the preview window when the file is not found.

Input

@DOCUMENT_PATHNAME

the full path name of the document to be previewed

Output

TEXT1

The upper and bottom text lines to be displayed as error message

TEXT2

Example

.VBSCRIPT
sub main()
DBWInit(TRUE)
docPath = DBWInput("@DOCUMENT_PATHNAME")
DBWOutput "TEXT1", "PREVIEW: " & docPath, ForWriting
DBWOutput "TEXT2", "PREVIEW: not exists!", ForAppending
end sub