GetBOMFieldValue

<< Click to Display Table of Contents >>

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

GetBOMFieldValue

Description

The command reads from the PARENT_CHILD table the value of the assigned field name.

Syntax

call DBWShell("GetBOMFieldValue childUID parentUID fieldName")

Parameters

childUID

It is the child document Unique Id

parentUID

It is the parent document Unique Id

fieldName

the field to read the value of

Remarks

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")

Results

@BOM_FIELD_VALUE

the value of the searched field

Example

DBWShell("GetBOMFieldValue 101 57 PARENT_CHILD_MY_FIELD")

fieldValue = DBWResult("@BOM_FIELD_VALUE")
DBWMsgBox "field value: " & fieldValue