GetControlRules Method
- Last UpdatedNov 06, 2025
- 2 minute read
'Declaration
Public Shared Function GetControlRules( _
ByVal qmSpecificationId As Integer, _
ByVal characteristicId As Integer _
) As DataSet
public static DataSet GetControlRules(
int qmSpecificationId,
int characteristicId
)
Parameters
- qmSpecificationId
- Required. Holds the ID of the QM specification for which data is being plotted on the SPC chart.
- characteristicId
- Required. Holds the ID of the characteristic for which data is being plotted on the SPC chart.
Return Value
Returns a DataSet used by the SPC chart for determining the control rules applicable to chart components and chart types.
The columns of the returned DataSet are listed below.
|
Column Name |
Description |
|---|---|
|
rule_id |
A integer that is the ID of the rule. From the Qm_Spec_Rule_Link table. |
|
priority |
A integer that is the rule's priority, which represents the relative importance of the rule, with lower numbers being more important than higher numbers. From the Spc_Rule table. |
|
use_for_ix |
A flag that indicates whether or not the rule applies to an Individuals chart. From the Spc_Rule table. |
|
use_for_xbar |
A flag that indicates whether or not the rule applies to an XBar chart. From the Spc_Rule table. |
|
use_for_sigma |
A flag that indicates whether or not the rule applies to an Sigma chart. From the Spc_Rule table. |
|
use_for_ma |
A flag that indicates whether or not the rule applies to an Moving Average chart. From the Spc_Rule table. |
|
use_for_range |
A flag that indicates whether or not the rule applies to an Range chart. From the Spc_Rule table. |
|
use_for_mr |
A flag that indicates whether or not the rule applies to an Moving Range chart. From the Spc_Rule table. |
|
use_for_attr |
A flag that indicates whether or not the rule applies to an Attribute chart. From the Spc_Rule table. |
| test1 |
An integer that is an enumeration that indicates the primary test type. 1 = trend up 2 = trend down 3 = run above 4 = run below 5 = run within 6 = run beyond 7 = alternating about 8 = capability sigma above 9 = Cpk above 10 = mean above 11 = Ppk above 12 = standard deviation above |
| test2 |
An integer that is an enumeration that indicates the secondary test type. Same values as for test1. |