AssignBomFieldValue

<< Click to Display Table of Contents >>

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

AssignBomFieldValue

Description

The commands write in the PARENT_CHILD table the value of the assigned field name.

Syntax

call DBWShell("AssignBomFieldValue  childUID  parentUID  fieldName   value")

Parameters

childUID

child document Unique Id

parentUID

parent document Unique Id

fieldName

the field to set the value of

value

the value to set for the specified field

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

See also

AssignBomFieldValue
AssignBomPositionNumber.htm

Example

DBWShell("AssignBOMFieldValue 101 57 PARENT_CHILD_MY_FIELD ABCD")