|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Commands Reference > DataForm > ViewRecord |
Open the data input mask for viewing the data of the selected item.
call DBWShell("ViewRecord [unique_id [displayOnRightSide]]")
unique_id |
Optional. unique id of the document to view data of. |
|---|---|
displayOnRightSide |
Optional. from build: 20041015 |
If no unique id is passed, DBWorks browser must be open.
'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