Sets the values in the current key of the current record as a record filter.
Record.SETRECFILTER
You can use this function to set a filter on a table before running a report. Enter C/AL code similar to the following example in the OnPush Trigger of a command button or menu item on a form. When the code is triggered, the current key fields of the current record in the form will be used as a filter when the report is run.
Customer.SETRECFILTER;
REPORT.RUN(REPORT::"An Example Report",FALSE,FALSE,Customer);
CLEAR(r)
Record.SETRECFILTER();
Report.XXX; // Any user-defined function.
Report.SETTABLEVIEW(Rec)
Report.RUNMODAL()
Comments
Record.SETRECFILTER
You can use this function to set a filter on a table before running a report. Enter C/AL code similar to the following example in the OnPush Trigger of a command button or menu item on a form. When the code is triggered, the current key fields of the current record in the form will be used as a filter when the report is run.
Customer.SETRECFILTER;
REPORT.RUN(REPORT::"An Example Report",FALSE,FALSE,Customer);
CLEAR(r)
Record.SETRECFILTER();
Report.XXX; // Any user-defined function.
Report.SETTABLEVIEW(Rec)
Report.RUNMODAL()
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
I got the concept of Setrecfilter.
Thank you. If you dont mind, can you share your gmail id ?
Regards,
chandru.