Why do you need this change?
We need this event to be able to assign the requestpage variables without needing to show it to the user and also, if necessary, to be able to skip the control that retrieves the journal batch to automate it.
A couple of months ago, we sent a request for this, but the resolution was not what we expected, because we needed just before the comprobations of OnPreReport because we need to not show the RequestPage and GUI, we want to be able to do this report in queue or just full automatic with a button. We need to assign all the reqeustPage variables the first think in OnPreReport
Describe the request
Describe the request
Our cliente want to be able to assign variables to the request page and be able to automate the proccess not showing any GUI or requestPage.
trigger OnPreReport()
begin
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
IsHandled := false;
OnBeforeOnPreReport(PostingDate, NewDueDate, NewPmtMethod, IncludeDiscCollExpenses, IncludeRejExpenses, IncludeFinanceCharges, TemplName, BatchName, IsHandled,);
if not IsHandled then begin
if NewDueDate = 0D then
Error(Text1100000);
if not GenJnlBatch.Get(TemplName, BatchName) then
Error(Text1100001);
end;
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
end;
[IntegrationEvent(false, false)]
local procedure OnBeforeOnPreReport(var PostingDate: Date; var NewDueDate: Date; var NewPmtMethod: Code[10]; var IncludeDiscCollExpenses: Boolean; var IncludeRejExpenses: Boolean; var IncludeFinanceCharges: Boolean; var TemplName: Code[10]; var BatchName: Code[10]; var IsHandled: Boolean)
begin
end;
Alternatives Evaluated
We have tried to use alternatives to avoid making the change, but we don't see a way to assign the variables from the request page before OnPreReport inits.
Performance Considerations
This code will not negatively affect performance, we just need it to assign some variables to make this automatic and avoid using requestPage.
Data Sensitivity Review
This event is just asked to skip a dialog window and assign requestPage vars, it will not expose sensitive data.
Multi-Extension Interaction
The only risk is to reactivate the dialog window when it should be deactivated for an automatic process. Also there are a control that if u put the data in the GenJnlBatch ant try to make a get, BC doesnt get the right journal batch, so we need to be able to skip the comprobation
Internal work item: AB#618758
Why do you need this change?
We need this event to be able to assign the requestpage variables without needing to show it to the user and also, if necessary, to be able to skip the control that retrieves the journal batch to automate it.
A couple of months ago, we sent a request for this, but the resolution was not what we expected, because we needed just before the comprobations of OnPreReport because we need to not show the RequestPage and GUI, we want to be able to do this report in queue or just full automatic with a button. We need to assign all the reqeustPage variables the first think in OnPreReport
Describe the request
Describe the request
Our cliente want to be able to assign variables to the request page and be able to automate the proccess not showing any GUI or requestPage.
Alternatives Evaluated
We have tried to use alternatives to avoid making the change, but we don't see a way to assign the variables from the request page before OnPreReport inits.
Performance Considerations
This code will not negatively affect performance, we just need it to assign some variables to make this automatic and avoid using requestPage.
Data Sensitivity Review
This event is just asked to skip a dialog window and assign requestPage vars, it will not expose sensitive data.
Multi-Extension Interaction
The only risk is to reactivate the dialog window when it should be deactivated for an automatic process. Also there are a control that if u put the data in the GenJnlBatch ant try to make a get, BC doesnt get the right journal batch, so we need to be able to skip the comprobation
Internal work item: AB#618758