CheckMandatoryFields Procedure
Codeunit Mandatory Fields Mgt.
Checks if the mandatory fields on the page has been filled in.
If a mandatory field is empty, a confirmation dialog is shown to the user.
This function should be called from the OnQueryClosePage()
trigger of the Card page of the table that has mandatory fields.
Use OnBeforeGetTablesWithMandatoryFields()
event to add support for a table.
Signature
CheckMandatoryFields(Rec: Variant) : Boolean
Parameters
Rec
Variant
The Rec
variable in the OnQueryClosePage()
trigger.
Returns
Boolean
Returns true
if the page can be closed, otherwise false
.
This documentation is generated from Spider v27.0