Share via


ReasonFormTable.validateDelete Method [AX 2012]

Validates whether the record passed in can be deleted, based on which module opened the form.

Syntax

public boolean validateDelete(ReasonTable _reasonTable)

Run On

Called

Parameters

Return Value

Type: boolean
true if the record passes validation; otherwise, false.

Remarks

The validation return value will be:

  • true if all reason code type fields (bank, cust, ledger, vend, asset) are false

  • true if reasonCodeAccountType is asset; and bank, cust, ledger, and vend fields are false

  • true if reasonCodeAccountType is bank; and asset, cust, ledger, and vend fields are false

  • true if reasonCodeAccountType is cust; and bank, asset, ledger, and vend fields are false

  • true if reasonCodeAccountType is ledger; and bank, cust, asset, and vend fields are false

  • true if reasonCodeAccountType is vend; and bank, cust, ledger, and asset fields are false

  • otherwise, false

See Also

Reference

ReasonFormTable Class