Report filter on customer no.

Bor1980Bor1980 Member Posts: 17
Hi all,

I've made a new report. This report is quit simple, printing information from customer table and a relation to another table.
I added the report on the Customer Page Action.
When I want to print the report in the Customer Page in Nav I want to have the Customer No in the filter.

Thank you for your help,

Rob

Dynamics NAV2016

Answers

  • postsauravpostsaurav Member Posts: 708
    Hi Rob,

    In the Customer Page where you added Action, Dont Set RunObject Property.

    In the Code -
    Cust.SETRANGE("No.",Rec."No.");
    REPORT.RUNMODAL(50000,TRUE,FALSE,Cust);
    
    Where -
    > Cust - is local variable of Customer Table.
    > 50000 - Is the report No. that you are trying to Run.

    Let me know if any issues.

    Thanks & Regards,
    Saurav Dhyani

    Do you Know this About NAV?


    Connect - Twitter | Facebook | Google + | YouTube

    Follow - Blog | Facebook Page | Google + Page
  • Bor1980Bor1980 Member Posts: 17
    Thank you for your answer.

    I have 1 problem. I don't have permission to change te code. No license for that :(

    Dynamics NAV2016
Sign In or Register to comment.