what is the Use of Setrec filter in NAV?

chandrurecchandrurec Member Posts: 560
Hi all,

I want to know the usage of the keyword Setrecfilter in navision.

If anyone knows the use of setrecfilter in NAV, Kindly explain me with an example.

Thanks in advance.

Regards,
chandru.

Comments

  • mohana_cse06mohana_cse06 Member Posts: 5,504
    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()
  • chandrurecchandrurec Member Posts: 560
    Hi Mohana,

    I got the concept of Setrecfilter.

    Thank you. If you dont mind, can you share your gmail id ?

    Regards,
    chandru.
Sign In or Register to comment.