Skip to content

[Events Request] Report 952 "Suggest Job Jnl. Lines" #30419

Description

@AlbBard

Why do you need this change?

I have to Filter the "Time Sheet Header" and "Time Sheet LIne" for a new filter "Approver Id Filter" that i have to add in request page. I can not use the others events because i can not access to global variable and because I must read only the correct records

Describe the request

I need two new events in report 952 "Suggest Job Jnl. Lines".

Event 1) I need to put the 1stevent in local procedure FillTimeSheetLineBuffer, before the line with code: "if TimeSheetHeader.FindSet() then".

the event will be call here:

if DateFilter <> '' then begin
TimeSheetHeader.SetFilter("Starting Date", DateFilter);
TimeSheetHeader.SetFilter("Starting Date", '..%1', TimeSheetHeader.GetRangeMax("Starting Date"));
TimeSheetHeader.SetFilter("Ending Date", DateFilter);
TimeSheetHeader.SetFilter("Ending Date", '%1..', TimeSheetHeader.GetRangeMin("Ending Date"));
end;

OnAfterFilterTimeSheetHeaderOnFillTimeSheetLineBuffer(TimeSheetHeader);

if TimeSheetHeader.FindSet() then

the event declaration will be:
[IntegrationEvent(true, true)]
local procedure OnAfterFilterTimeSheetHeaderOnFillTimeSheetLineBuffer(var TimeSheetHeader: Record "Time Sheet Header")
begin
end;

Event 2) I need to put the 2nd event in local procedure FillTimeSheetLineBuffer, before the line with code: "if TimeSheetLine.FindSet() then".

the event will be call here:

TimeSheetLine.SetRange(Posted, false);
OnAfterFilterTimeSheetLineOnFillTimeSheetLineBuffer(TimeSheetHeader, TimeSheetLine)
if TimeSheetLine.FindSet() then

the event declaration will be:
[IntegrationEvent(true, true)]
local procedure OnAfterFilterTimeSheetLineOnFillTimeSheetLineBuffer(TimeSheetHeader: Record "Time Sheet Header"; var TimeSheetLine: Record "Time Sheet Line")
begin
end;

Internal work item: AB#646908

Metadata

Metadata

Assignees

No one assigned

    Labels

    SCMGitHub request for SCM areaevent-requestRequest for adding an eventext-ready-to-implementReviewed and ready to implement and create PR

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions