ALAppExtensions
ALAppExtensions copied to clipboard
[Event Request] Table 296 "Reminder Line", field 10 "Document Type", OnValidate trigger; OnValidateDocumentTypeOnBeforeTestField
Hello, we need to influence for which types of document to execute TestField of Type with Customer Ledger Entry. Thank you in advance!
field(10; "Document Type"; Enum "Gen. Journal Document Type")
{
Caption = 'Document Type';
trigger OnValidate()
var
// - new
IsHandled: Boolean;
// + new
begin
// - new
IsHandled := false;
OnValidateDocumentTypeOnBeforeTestField(Rec, IsHandled);
if not IsHandled then
// + new
TestField(Type, Type::"Customer Ledger Entry");
Validate("Document No.");
end;
}
[IntegrationEvent(false, false)]
local procedure OnValidateDocumentTypeOnBeforeTestField(var ReminderLine: Record "Reminder Line"; var IsHandled: Boolean)
begin
end;
Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.