Adjust Report selection during Runtime Business Central AL

fve1fve1 Member Posts: 6
Hi,

I look for a possibility in AL, to print a custom report when a Whse. Pick is created, whithout leaving a footprint.

Right now, in Report 7318, the following code is called in the OnPostReport():

IF PrintDoc THEN BEGIN
IsHandled := FALSE;
OnBeforePrintPickingList(WhseActivHeader,IsHandled);
IF NOT IsHandled THEN
REPORT.RUN(REPORT::"Picking List",FALSE,FALSE,WhseActivHeader);
END;



I would like to change report "Picking List" to a Custom report...

I think I heard this was possible, by changing the report at runtime, however I am not sure...

Any help is appreciated.

Sign In or Register to comment.