|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Commands Reference > Database > GetUniqueIdListFromFileName |
Gets the list of configured documents that may exist for a particular document.
call DBWShell("GetUniqueIdListFromFileName documentFileName")
documentFileName |
full path name of the document |
@DOCUMENTS_UID_LIST |
A comma separated list of related documents unique ids |
...
DBWShell("CurrentDocument")
uid = DBWResult("@DOCUMENT_UNIQUE_ID")
fdir = DBWQueryByUid(uid,DBWLookUp("NAME_FIELD_FILE_DIRECTORY"))
fname = DBWQueryByUid(uid,DBWLookUp("NAME_FIELD_FILE_NAME"))
fullPath = fdir & fname
DBWShell("GetUniqueIdListFromFileName " & fullPath)
uids = DBWResult("@DOCUMENTS_UID_LIST")
DBWMsgBox uids
...