Description: Opens the reason-selection UI associated with a reason-container component on the current DBForm and optionally supplies a reason ID and duration.
Calling convention: CIP_CallSelectReasonDialog("ReasonContainerName": String, "TimeToExplainEntryName": String ,["ReasonID": Variant], ["Duration": Variant] )
Parameters:
ReasonContainerName: name of an etReason or etReasonVolume entry displayed on the current DBForm.
TimeToExplainEntryName: name of an etDuration or etNumber entry; the implementation also accepts an omitted or empty value.
ReasonID: optional reason identifier supplied to the new reason editor.
Duration: optional duration supplied to the new reason editor.
Returns: Undefined on success. Invalid context, entries, entry types, or missing visual components set FALSE and raise an exception; a NULL reason-container name returns NULL.
Availability: Default while a compatible DBForm and reason component are visible.
Example:
CIP_CallSelectReasonDialog("DowntimeReason", "DowntimeDuration", 1201, 15);