GetByKey Method (BomItemOperSpec)
- Last UpdatedNov 06, 2025
- 2 minute read
The GetByKey() method retrieves the specified BOM item operation specification record from the Bom_Item_Oper_Spec table.
'Declaration
Public Shared Function GetByKey( _
ByVal itemId As String, _
ByVal verId As String, _
ByVal bomPos As Integer, _
ByVal processId As String, _
ByVal operId As String, _
ByVal stepNo As Integer, _
ByVal specVerId As String, _
ByVal specId As String _
) As DataSet
'Usage
Dim itemId As String
Dim verId As String
Dim bomPos As Integer
Dim processId As String
Dim operId As String
Dim stepNo As Integer
Dim specVerId As String
Dim specId As String
Dim value As DataSet
value = BomItemOperSpec.GetByKey(itemId, verId, bomPos, processId, operId, stepNo, specVerId, specId)
public static DataSet GetByKey(
string itemId,
string verId,
int bomPos,
string processId,
string operId,
int stepNo,
string specVerId,
string specId
)
Parameters
- itemId
Required. Holds the ID of the BOM item that identifies the record to be retrieved.
- verId
Required. Holds the ID of the BOM version that identifies the record to be retrieved.
- bomPos
Required. Holds the BOM position (not necessarily in sequence) that identifies the record to be retrieved.
- processId
Required. Holds the ID of the process that identifies the record to be retrieved.
- operId
Required. Holds the ID of the operation in the process that identifies the record to be retrieved.
- stepNo
Required. Holds the step number that identifies the record to be retrieved.
- specVerId
Required. Holds the ID of the specification version that identifies the record to be retrieved.
- specId
Required. Holds the ID of the specification that identifies the record to be retrieved.
Return Value
Returns a DataSet that contains the DataRow of the specified BOM item operation specification in the Bom_Item_Oper_Spec table. If no matching record for the specified BOM item operation specification is found, an empty DataSet is returned.