BOMVersion::selectBomVersion Method
Finds a BOM version record based on search criteria provided by the parameters.
Syntax
client server public static BOMVersion selectBomVersion(
ItemId _itemId,
StartDate _date,
FromQty _fromQty,
InventDim _inventDimCriteria,
[boolean _includeActive,
boolean _includeInactive,
boolean _includeApproved,
boolean _includeUnapproved,
boolean _checkDate,
BOMId _bomId,
boolean _forUpdate])
Run On
Called
Parameters
- _itemId
Type: ItemId Extended Data Type
A string that holds an item id.
- _date
Type: StartDate Extended Data Type
A date criteria for the FromDate and ToDate fields search of BOM version items.
- _fromQty
Type: FromQty Extended Data Type
A real that specifies the FromQty field criteria for the search of BOM version items.
- _inventDimCriteria
Type: InventDim Table
An InventDim that contains an inventory dimension criteria for the search of active BOM version items.
- _includeActive
Type: boolean
A Boolean value indicating if active versions should be included in the search; optional.
- _includeInactive
Type: boolean
A Boolean value indicating if inactive versions should be included in the search; optional.
- _includeApproved
Type: boolean
A Boolean value indicating if approved versions should be included in the search; optional.
- _includeUnapproved
Type: boolean
A Boolean value indicating if unapproved versions should be included in the search; optional.
- _checkDate
Type: boolean
A Boolean value indicating if the date range must be checked.
- _bomId
Type: BOMId Extended Data Type
The BOM ID to find; optional.
- _forUpdate
Type: boolean
A Boolean value that is assigned to the BOMVersion.selectForUpdate field; optional.
The default is false.
Return Value
Type: BOMVersion Table
A BOM version record.