GetAll Method (QmSpec)
- Last UpdatedMar 17, 2026
- 7 minute read
'Declaration
Public Shared Function GetAll( _
ByVal qmSpecId As Nullable(Of Integer), _
ByVal qmSpecName As String, _
ByVal qmSpecDesc As String, _
ByVal editLevel As Nullable(Of Integer), _
ByVal verId As String, _
ByVal startEffUtc As Nullable(Of Date), _
ByVal startEffLocal As Nullable(Of Date), _
ByVal endEffUtc As Nullable(Of Date), _
ByVal endEffLocal As Nullable(Of Date), _
ByVal entId As Nullable(Of Integer), _
ByVal itemId As String, _
ByVal itemCategoryId As Nullable(Of Integer), _
ByVal processId As String, _
ByVal operId As String, _
ByVal categoryId As Nullable(Of Integer), _
ByVal planId As Nullable(Of Integer), _
ByVal numberPointsPerPage As Nullable(Of Integer), _
ByVal spare1 As String, _
ByVal spare2 As String, _
ByVal spare3 As String, _
ByVal spare4 As String, _
ByVal lastEditBy As String, _
ByVal lastEditAt As Nullable(Of Date) _
) As DataSet
'Usage
Dim qmSpecId As Nullable(Of Integer)
Dim qmSpecName As String
Dim qmSpecDesc As String
Dim editLevel As Nullable(Of Integer)
Dim verId As String
Dim startEffUtc As Nullable(Of Date)
Dim startEffLocal As Nullable(Of Date)
Dim endEffUtc As Nullable(Of Date)
Dim endEffLocal As Nullable(Of Date)
Dim entId As Nullable(Of Integer)
Dim itemId As String
Dim itemCategoryId As Nullable(Of Integer)
Dim processId As String
Dim operId As String
Dim categoryId As Nullable(Of Integer)
Dim planId As Nullable(Of Integer)
Dim numberPointsPerPage As Nullable(Of Integer)
Dim spare1 As String
Dim spare2 As String
Dim spare3 As String
Dim spare4 As String
Dim lastEditBy As String
Dim lastEditAt As Nullable(Of Date)
Dim value As DataSet
value = QmSpec.GetAll(qmSpecId, qmSpecName, qmSpecDesc, editLevel, verId, startEffUtc, startEffLocal, endEffUtc, endEffLocal, entId, itemId, itemCategoryId, processId, operId, categoryId, planId, numberPointsPerPage, spare1, spare2, spare3, spare4, lastEditBy, lastEditAt)
public static DataSet GetAll(
Nullable<int> qmSpecId,
string qmSpecName,
string qmSpecDesc,
Nullable<int> editLevel,
string verId,
Nullable<DateTime> startEffUtc,
Nullable<DateTime> startEffLocal,
Nullable<DateTime> endEffUtc,
Nullable<DateTime> endEffLocal,
Nullable<int> entId,
string itemId,
Nullable<int> itemCategoryId,
string processId,
string operId,
Nullable<int> categoryId,
Nullable<int> planId,
Nullable<int> numberPointsPerPage,
string spare1,
string spare2,
string spare3,
string spare4,
string lastEditBy,
Nullable<DateTime> lastEditAt
)
Parameters
- qmSpecId
- Optional. An integer value to filter the dataset by specification identifier.
- qmSpecName
- Optional. A string value to filter the dataset by the name of the specification.
- qmSpecDesc
- Optional. A string value to filter the dataset by the description of the specification.
- editLevel
- Optional. An integer value to filter the dataset by the privilege level required to edit this record. Default = 1.
- verId
- Optional. A string value to filter the dataset by the version of this specification.
- startEffUtc
- Optional. A datetime value to filter the dataset by the UTC time when a version of a specification becomes effective. The default is the current date and time.
- startEffLocal
- Optional. A datetime value to filter the dataset by the local time when a version of a specification becomes effective. The default is the current date and time. The date and time are relative to the entity if ent_id is not null. Otherwise, it is relative to the middleware server.
- endEffUtc
- Optional. A datetime value to filter the dataset by the UTC time when this version of this specification ceases to be effective. The end_eff_utc is null when there is a Qm_Spec record with the same name but a later start_eff date (i.e., when this one is superseded).
- endEffLocal
- Optional. A datetime value to filter the dataset by the local time when this version of this specification ceases to be effective. The end_eff_local is null when there is a Qm_Spec record with the same name but a later start_eff_local date (i.e., when this one is superseded). The date and time are relative to the entity if ent_id is not null. Otherwise, it is relative to the middleware server.
- entId
- Optional. An integer value to filter the dataset by the entity or the entity class to which this specification applies.
- itemId
- Optional. A string value to filter the dataset by the item to which this specification applies. If not null, item_category_id must be null.
- itemCategoryId
- Optional. A string value to filter the dataset by the item category to which this specification applies. If not null, item_id must be null.
- processId
- Optional. A string value to filter the dataset by the process to which this specification applies. Either both must be null or both non-null.
- operId
- Optional. A string value to filter the dataset by the operation to which this specification applies. Either both must be null or both non-null.
- categoryId
- Optional. An integer value to filter the dataset by the category to which this specification belongs.
- planId
- Optional. An integer value to filter the dataset by the default sample plan for this specification.
- numberPointsPerPage
- Optional. An integer value to filter the dataset by the number of sample per page for SPC Chart.
- spare1
- Optional filter parameter. Holds a string value to filter the dataset by a value defined by language term 5157.
- spare2
- Optional filter parameter. Holds a string value to filter the dataset by a value defined by language term 5157.
- spare3
- Optional filter parameter. Holds a string value to filter the dataset by a value defined by language term 5157.
- spare4
- Optional filter parameter. Holds a string value to filter the dataset by a value defined by language term 5157.
- lastEditBy
- Optional filter parameter. Holds a string value to filter the dataset by ID of the user who created or last modified this record.
- lastEditAt
- Optional filter parameter. Holds a datetime value to filter the dataset by the time that the row was last edited to retrieve information about.
Return Value
Returns a DataSet that contains all the records in the Qm_Spec table that satisfy the specified filters. If no matching records are found, an empty DataSet is returned.
The columns of the returned DataSet are described below.
| Column Name | Description |
|---|---|
| qm_spec_id | An integer that is the unique ID of the specification. |
| qm_spec_name | A string that is the name of the specification. |
| qm_spec_desc | A string that is the description of the specification. |
| edit_level | An integer that is the privilege level required to edit this record. |
| ver_id | A string that is the version of this specification. |
| start_eff_utc | A datetime value that is the UTC time when this version of the specification becomes effective. |
| start_eff_local | A datetime value that is the local date and time that corresponds to when this version of the specification becomes effective. The date and time are relative to the entity if ent_id is not null. Otherwise, it is relative to the middleware server. |
| start_eff | A datetime value that is the local date and time, relative to the client that is requesting the data from the server, that corresponds to when this version of the specification becomes effective. |
| end_eff_utc | A datetime value that is the UTC time when this version of the specification ceases to be effective. |
| end_eff_local | A datetime value that is the local time when this version of the specification ceases to be effective. The date and time are relative to the entity if ent_id is not null. Otherwise, it is relative to the middleware server. |
| end_eff | A datetime value that is the local time, relative to the client that is requesting the data from the server, when this version of the specification ceases to be effective. |
| ent_id | An integer that is the ID of the entity or entity class to which this specification applies. |
| ent_name | A string that is the name of the entity to which this specification applies. |
| item_id | A string that is the ID of the item to which this specification applies. |
| item_desc | A string that is the description of the item to which this specification applies. |
| item_display |
A string that is the value that indicates what format to use when identifying the item in the user interface. The format values are defined in the system attribute Item display (attr_id 210 in the System_Attr table). Possible values and their formats are: 0 = item_id 1 = item_desc 2 = item_id (item_desc) 3 = item_desc (item_id) |
| item_category_id | An integer that is the ID of the item category to which this specification applies. |
| item_category_name | A string that is the name of the item category to which this specification applies. |
| process_id | A string that is the ID of the process to which this specification applies. |
| oper_id | A string that is the ID of the operation to which this specification applies. |
| category_id | An integer that is the ID of the category to which this specification belongs. |
| plan_id | An integer that is the ID of the default sample plan for this specification. |
| num_pts_per_page | An integer that is the number of sample points per page for the SPC Chart. |
| display_seq | An integer that is the value for the display sequence of the specification (see Remarks). |
| spare1 | A string that is the value of the spare1 field, defined by language term 5157. |
| spare2 | A string that is the value of the spare2 field, defined by language term 5158. |
| spare3 | A string that is the value of the spare3 field, defined by language term 5159. |
| spare4 | A string that is the value of the spare4 field, defined by language term 5160. |
| last_edit_comment | A string that is the comments about why the record was added or updated. |
| last_edit_by | A string that is the ID of the user who added or last updated this record. |
| last_edit_at | A datetime value that indicates when the record was added or last updated. |
A QM specification's display_seq column value determines the order in which the specification record appears in the returned dataset. If two or more specifications in the returned dataset have the same order value (e.g., 2), then those specifications are ordered alphabetically within that order value's subgroup.
For input parameters that are not to be included as a filter, pass a null.
display_seqItem display