.NET Framework Class Library
BOM.CreateNewBomItem Method
|
<< Click to Display Table of Contents >> Navigation: MwPDMApi Namespace > BOM Class > BOM Methods > .NET Framework Class Library |
Creates a new child item only for BOM purposes.
Namespace: MwPDMApi
Assembly: MwPDMApi (in MwPDMApi.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
Visual Basic |
|---|
Public Function CreateNewBomItem ( _ docType As DocType, _ |
C# |
|---|
public string CreateNewBomItem( DocType docType, |
Visual C++ |
|---|
public: String^ CreateNewBomItem( |
JavaScript |
|---|
function createNewBomItem(docType, docId, instances, fileName, parentUid, makeBuy); |
Parameters
docType
Type: MwPDMApi.DocType
type of document
docId
Type: System.String
document id
instances
Type: System.Int32
document number of instances to show in the BOM
fileName
Type: System.String
file name (even if the file doesn't exist).
parentUid (Optional)
Type: System.String
Optional. Document unique id.
makeBuy (Optional)
Type: System.String
Optional. The MAKE_BUY field value for the new record being created (used if parentUid is specified)
Return Value
the unique_id of the created bom item
Remarks
If no parentUid is specified, the browser must be open, Tree Page must be active and a document must be selected.
See Also