ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Table 352 Default Dimension - SetRangeToLastFieldInPrimaryKey "OnAfterSetRangeToLastFieldInPrimaryKey"

Open MH1612 opened this issue 4 years ago • 1 comments

Can we please get the following event?

local procedure SetRangeToLastFieldInPrimaryKey(RecRef: RecordRef; Value: Code[20])
var
	FieldRef: FieldRef;
	KeyRef: KeyRef;
begin
	KeyRef := RecRef.KeyIndex(1);
	FieldRef := KeyRef.FieldIndex(KeyRef.FieldCount);
	FieldRef.SetRange(Value);

	OnAfterSetRangeToLastFieldInPrimaryKey(RecRef, FieldRef, Value); <-- NEW EVENT
end;
[IntegrationEvent(false, false)]
local procedure OnAfterSetRangeToLastFieldInPrimaryKey(RecRefP: RecordRef; var FieldRefP: FieldRef; ValueP: Code[20])
begin
end;

MH1612 avatar May 05 '22 10:05 MH1612

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.

JesperSchulz avatar May 11 '22 16:05 JesperSchulz