ValidateNotNullFieldsBeforeApprove

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Commands Reference > Revisions >

ValidateNotNullFieldsBeforeApprove

available from build: 20120124

Description

This command checks for any NULL field declared in the "Options→Data Input→Not null fields→Not null fields on Revision Approval" list.

Syntax

call DBWShell("ValidateNotNullFieldsBeforeApprove [uid]")

Parameter

uid

Optional. The unique id of the document to check null fields against
if not passed, the currently selected document unique id will be used.

Results

@OKVALIDATE

0: if the validation has failed
1: if the validation was successful

Example

DBWShell("ValidateNotNullFieldsBeforeApprove")
if (okDBW = False) Then
 DBWMsgBox "Invalid call"
 exit Sub
End if
res = DBWResult("@OKVALIDATE")
DBWMsgBox "res=" & res