|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Commands Reference > BOM > GetBOMFieldValue |
The command reads from the PARENT_CHILD table the value of the assigned field name.
call DBWShell("GetBOMFieldValue childUID parentUID fieldName")
childUID |
It is the child document Unique Id |
|---|---|
parentUID |
It is the parent document Unique Id |
fieldName |
the field to read the value of |
The built-in field names for the PARENT_CHILD table are:
Physical Quantity → DBWLookUp("NAME_FIELD_PARENT_CHILD_QTY")
Unit of measure → DBWLookUp("NAME_FIELD_PARENT_CHILD_UM")
MakeBuy → DBWLookUp("NAME_FIELD_PARENT_CHILD_MAKE_BUY")
@BOM_FIELD_VALUE |
the value of the searched field |
DBWShell("GetBOMFieldValue 101 57 PARENT_CHILD_MY_FIELD")
fieldValue = DBWResult("@BOM_FIELD_VALUE")
DBWMsgBox "field value: " & fieldValue