-
Notifications
You must be signed in to change notification settings - Fork 29
LC0039
Arthur edited this page Dec 5, 2023
·
6 revisions
The rule is an addition on the AL0133 rule to cover some more scenario's.
procedure RunWrongPage()
var
PurchaseHeader: Record "Purchase Header";
begin
Page.Run(Page::"Sales Order", PurchaseHeader);
end;
Argument 2: cannot convert from 'Record "Purchase Header"' to 'Record "Sales Header"'.
Checks for the GetRecord, SetRecord, SetSelectionFilter and SetTableView methods from a Page variable.
procedure WrongVariable()
var
ServiceHeader: Record "Service Header";
AssemblyOrder: Page "Assembly Order";
begin
AssemblyOrder.SetRecord(ServiceHeader);
end;
Argument 1: cannot convert from 'Record "Service Header"' to 'Record "Assembly Header"'.
Checks for the DrillDownPageId and LookupPageId for a table(extension) object.
tableextension 50100 "Transfer Header" extends "Transfer Header"
{
LookupPageId = "Production Order List";
DrillDownPageId = "Production Order List";
}
Argument 1: cannot convert from 'Record "Transfer Header"' to 'Record "Production Order"'.