|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Commands Reference > RemoteAccess > TransferOwnership |
available from build: 20110714 |
This command is useful to automate Remote Access procedures. In details it transfers the ownership of a record from a company to another one.
call DBWShell("TransferOwnership uid NewCompanyID [okProcessRelatedDocuments]")
uid |
the unique_id of the record to change the ownership of |
|---|---|
NewCompanyID |
the new COMPANY_ID to be set for the selected record |
okProcessRelatedDocuments |
Optional. |
The Remote Access Mode must be enable.
DBWShell("CurrentDocument")
uid = DBWResult("@DOCUMENT_UNIQUE_ID")
newCompanyID = "Mechworks"
DBWShell("TransferOwnership " & uid & " " & newCompanyID & " 1")