Skip to content

[Event Request] Page 729 "Copy Item" #29360

@Enrico-Marini-EOS

Description

@Enrico-Marini-EOS

Why do you need this change?

Hello,
I need an event in Page 729 "Copy Item" in the procedure "ValidateShouldCopyAllInformation()" for modifying custom fields on table 729 "Copy Item Buffer".

local procedure ValidateShouldCopyAllInformation()
var
InfoFieldRef: FieldRef;
RecRef: RecordRef;
i: Integer;
begin
RecRef.GetTable(Rec);
for i := 11 to 99 do
if RecRef.FieldExist(i) then begin
InfoFieldRef := RecRef.Field(i);
if InfoFieldRef.Type() = FieldType::Boolean then
InfoFieldRef.Value := ShouldCopyAllInformation;
end;
RecRef.Modify();
RecRef.SetTable(Rec);

// Start Event
OnAfterValidateShouldCopyAllInformation(Rec, ShouldCopyAllInformation);
// End Event
end;

Describe the request

I need an event at the end of procedure "ValidateShouldCopyAllInformation()".

New Event:

[IntegrationEvent(false, false)]
local procedure OnAfterValidateShouldCopyAllInformation(var CopyItemBuffer: Record "Copy Item Buffer"; ShouldCopyAllInfo: Boolean)
begin
end;
Internal work item: AB#611651

Metadata

Metadata

Assignees

No one assigned

    Labels

    SCMGitHub request for SCM areaevent-requestRequest for adding an eventships-in-future-updateFix ships in a future update

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions