GetByKey Method (JobState)Save PDFSave selected topicSave selected topic and subtopicsSave all topicsShareShare to emailCopy topic URLLast UpdatedNov 06, 20251 minute readOperations and ExecutionManufacturing Execution System 2023 R2 The GetByKey() method retrieves the specified job or step state from the Job_State table.Syntax Visual BasicC# 'Declaration Public Shared Function GetByKey( _ ByVal stateCode As Integer _ ) As DataSet 'Usage Dim stateCode As Integer Dim value As DataSet value = JobState.GetByKey(stateCode) public static DataSet GetByKey( int stateCode ) ParametersstateCode Required. Holds the code of the job or step state to be retrieved. Return ValueReturns a DataSet that contains the DataRow of the specified job or step state. If no matching record found, an empty DataSet is returned.See AlsoReferenceJobState ClassJobState Members In This Topic
The GetByKey() method retrieves the specified job or step state from the Job_State table.Syntax Visual BasicC# 'Declaration Public Shared Function GetByKey( _ ByVal stateCode As Integer _ ) As DataSet 'Usage Dim stateCode As Integer Dim value As DataSet value = JobState.GetByKey(stateCode) public static DataSet GetByKey( int stateCode ) ParametersstateCode Required. Holds the code of the job or step state to be retrieved. Return ValueReturns a DataSet that contains the DataRow of the specified job or step state. If no matching record found, an empty DataSet is returned.See AlsoReferenceJobState ClassJobState Members
The GetByKey() method retrieves the specified job or step state from the Job_State table.Syntax Visual BasicC# 'Declaration Public Shared Function GetByKey( _ ByVal stateCode As Integer _ ) As DataSet 'Usage Dim stateCode As Integer Dim value As DataSet value = JobState.GetByKey(stateCode) public static DataSet GetByKey( int stateCode ) ParametersstateCode Required. Holds the code of the job or step state to be retrieved. Return ValueReturns a DataSet that contains the DataRow of the specified job or step state. If no matching record found, an empty DataSet is returned.See AlsoReferenceJobState ClassJobState Members
The GetByKey() method retrieves the specified job or step state from the Job_State table.Syntax Visual BasicC# 'Declaration Public Shared Function GetByKey( _ ByVal stateCode As Integer _ ) As DataSet 'Usage Dim stateCode As Integer Dim value As DataSet value = JobState.GetByKey(stateCode) public static DataSet GetByKey( int stateCode ) ParametersstateCode Required. Holds the code of the job or step state to be retrieved. Return ValueReturns a DataSet that contains the DataRow of the specified job or step state. If no matching record found, an empty DataSet is returned.See AlsoReferenceJobState ClassJobState Members