PopupItemReasonSelection(String,Int32,Boolean,Boolean,Int32,String) Method
- Last UpdatedNov 06, 2025
- 1 minute read
The PopupItemReasonSelection() method opens an Item Reason Selection dialog. This dialog displays a list of Reason Groups on the left and the specific Reasons associated with the selected group on the right.
This overload of the method allows the item reasons to be filtered by item ID, entity, and/or only rejected reasons.
public static bool PopupItemReasonSelection(
string itemID,
int entID,
bool rejReasonsOnly,
bool includeEmptyReason,
out int reasCd,
out string reasDesc
)
Parameters
- itemID
- Required. Holds the ID of the item being consumed or produced, whose reasons are shown in the dialog.
- entID
- Required. Holds the ID of the entity whose item reasons are shown in the dialog.
- rejReasonsOnly
- Required. Holds a flag that, if set to true, causes only reject reasons to be included in the dialog.
- includeEmptyReason
- Required. Holds a flag that, if set to true, causes an empty entry to be included at the beginning of the list of reasons to allow for selection of 'None'.
- reasCd
- Output. Holds the selected reason code.
- reasDesc
- Output. Holds the selected reason description.
Return Value
Returns true if a reason was selected.