The core E9 submit-guard pattern: start from the submit event, call an interface asynchronously, require a stable successful response, and decide from responsebody.
Uses CALDTROW to count detail-table rows that match a condition into a main-table field; the condition must use a double equals operator, and mistakes may not throw errors.