|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Library Reference > Selection > DBWSelectFromWhereUsed |
Returns the documents where the current one is used.
Function DBWSelectFromWhereUsed(DocUid, WhereUsedType, Title)
DocUid |
unique id of the document of which find users. |
|---|---|
WhereUsedType |
filter to select only some type of document between the users. for every type of doc:<commas><commas> for a single type of doc: <commas><apostrophe>+ type to find+<apostrophe><commas> for multiple type of doc: ... <commas> |
Title |
It is the title of the dialog shown |

The dialog containing parent documents of the current one
Data in the dialog are shown in the format:
<ID> | <DESCRIPTION> | <DOC_TYPE> | <UNIQUE_ID>
The function assumes the value of the unique id of the document selected in the dialog.
Sub Main()
DBWInit(TRUE)
'retrieve the currently selected document
call dbwshell("currentDocument")
docUID=DBWResult("@DOCUMENT_UNIQUE_ID")
WhereUsedType=""
title = "Document with UID=" & docUID & " is used in"
msgbox DBWSelectFromWhereUsed( DocUid, WhereUsedType, title )
End Sub