ViewRecord

<< Click to Display Table of Contents >>

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

ViewRecord

Description

Open the data input mask for viewing the data of the selected item.

Syntax

call DBWShell("ViewRecord [unique_id  [displayOnRightSide]]")

Parameters

unique_id

Optional. unique id of the document to view data of.

displayOnRightSide

Optional. from build: 20041015
0: no actions ( default )
1: position the Data Input Form on the right-side of the currently displayed Data Input Form.
This parameter must only be used in .LST and .SPT scripts, since when executing them a Data Input Form is already displayed.

Remarks

warningIf no unique id is passed, DBWorks browser must be open.

Example

'COPIED_FROM_UNIQUE_ID.SPT

.VBSCRIPT
sub main()
 DBWInit(TRUE)
 copiedFromUniqueId = DBWInput(DBWLookUp("NAME_FIELD_COPIED_FROM_UNIQUE_ID"))
 if copiedFromUniqueId = "" then
  exit sub
 end if
 if CLng(copiedFromUniqueId) > 0 then
  DBWShell("ViewRecord " & copiedFromUniqueId & " 1")
 end if
end sub