DBWSelectFromComposedOf

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Library Reference > Selection >

DBWSelectFromComposedOf

Description

It shows a dialog that allows to select documents from a list, given a parent document and a criteria to choose children between.

Syntax

Function DBWSelectFromComposedOf(DocUid, ComposedOfType, Title)

Parameters

DocUid

unique id of the document to find children of.

ComposedOfType

filter to select only some type of document.
The string must be as follows:

for every type of doc:<commas><commas>
example: ""

for a single type of doc: <commas><apostrophe>+ type to find+<apostrophe><commas>
example: "'A'" this shows only assemblies

for multiple type of doc:
<commas>
<apostrophe>+ 1st type to find+<apostrophe><comma>
<apostrophe>+ 2nd type to find+<apostrophe><comma>

...

<commas>
example: "'A','P'" this shows both assemblies and parts

Title

title of the dialog shown

DBWList

Return values

The function assumes the value of the unique id of the selected document.

See also

DBWSelectFromWhereUsed

Example

Sub main()
 DBWInit(TRUE)
 Dim chosenDocID
 DocUid = 468
 ComposedOfType = ""
 title = "Choose your document"
 chosenDocID = DBWSelectFromComposedOf(DocUid,ComposedOfType,title)
 msgbox "You chose: " & chosenDocID
End Sub