page 8006 "Contract Renewal Selection" OnAfterCheckContractLine
Why do you need this change?
Please extend following event with record from page.
Current state:
[IntegrationEvent(false, false)]
local procedure OnAfterCheckContractLine(var CustSubContractLine: Record "Cust. Sub. Contract Line")
begin
end;
Describe the request
Expected event:
[IntegrationEvent(false, false)]
local procedure OnAfterCheckContractLine(var CustSubContractLine: Record "Cust. Sub. Contract Line"; Rec: Record "Cust. Sub. Contract Line)
begin
end;
It's needed for maintaining the pages record filters for additional checks of lines.
@samra-singhammer you mention in your request that you require an additional parameter:
In general it can be helpful to include the place where the event is called in the request that microsoft will provide the correct paramters in the event.
[TryFunction]
local procedure CheckContractLine(var CustomerContractLine: Record "Cust. Sub. Contract Line")
begin
...
//> Change
//OnAfterCheckContractLine(CustomerContractLine);
OnAfterCheckContractLine(CustomerContractLine, Rec);
//< Change
end;
If I understand your request correctly then you would like to have the Rec added to the event OnAfterCheckContractLine in the procedure CheckContractLine?
You mention that you require that page record filters
The filtres are only provided if a paramter is provided by reference.
Therefore you would need to update your event signature to include a var before the Rec: Record "Cust. Sub. Contract Line.
@pri-kise Thank you for the quick answer. Yes, you are correct, this will solve my problem. I will close the issue.