Creating reports to process data
If we want to carry out some process without an output, we can use a report with the Process-only option. It allow us to use the built-in processing loop along with sorting and filtering capabilities to create a variety of data updating routines with minimum programming. In addition to this, it gives access to the Request Page to allow user inputs and guidance for the run. We can create the same functionality using codeunit, but for user inputs, we need to develop an additional page. Here we will see how to build a processing-only report.
How to do it...
Create a new blank report from Object Designer.
Set the following property on the report:
Property
Value
ProcessingOnly
Yes
Now, the previous property system will open a dialog box to confirm the auto changes done after setting this property. Click on Yes:
Add a data item with
Customer
as the table data source.In the
OnAfterGetRecord
trigger for thecustomer
data item, add the following code:"Last Date...