GetReasons Method
- Last UpdatedNov 06, 2025
- 2 minute read
'Declaration
Public Shared Function GetReasons( _
ByVal entId As Integer, _
ByVal itemId As String, _
ByVal reasGrpType As Nullable(Of Integer) _
) As DataSet
'Usage
Dim entId As Integer
Dim itemId As String
Dim reasGrpType As Nullable(Of Integer)
Dim value As DataSet
value = ItemReasGrpEntLink.GetReasons(entId, itemId, reasGrpType)
public static DataSet GetReasons(
int entId,
string itemId,
Nullable<int> reasGrpType
)
Parameters
- entId
- Required. Holds the ID of the entity.
- itemId
- Optional filter parameter. Holds the ID of an item.
- reasGrpType
- Optional filter parameter. Holds an enumeration that specifies an item reason group type.
Return Value
Returns a DataSet that contains all the item reasons in the Item_Reas_Grp_Ent_Link table that are associated with the specified entity and any of its ancestors.
If the optional item class ID is supplied, then all the item reasons the Item_Reas_Grp_Class_Link table that are associated with that item class are included in the DataSet.
If no matching records are found, an empty DataSet is returned.
The columns of the returned DataSet are described below.
|
Column Name |
Description |
|---|---|
|
reas_grp_id |
An integer that is the ID of the item reason group, from the item_reas_grp.reas_grp_id column linked to the item reason for this row. |
|
reas_grp_desc |
A string that is the description of the item reason group, from the item_reas_grp.reas_grp_desc column linked to the item reason for this row. |
|
reas_grp_type |
An enumeration that identifies the type of reason group, from the item_reas_grp.reas_grp_type column linked to the item reason for this row. |
|
reas_cd |
An integer that is the ID of the reason code, from the Item_Reas table. |
|
reas_desc |
A string that is the description of the reason, from the Item_Reas table. |