GetUniqueIdListFromFileName

<< Click to Display Table of Contents >>

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

GetUniqueIdListFromFileName

Description

Gets the list of configured documents that may exist for a particular document.

Syntax

call DBWShell("GetUniqueIdListFromFileName documentFileName")

Parameters

documentFileName

full path name of the document

Results

@DOCUMENTS_UID_LIST

A comma separated list of related documents unique ids

Example

...

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
...