Report and request form parameters/variables

andy76andy76 Member Posts: 616
Hello,

I want to call a report (ex. STD 99001025 - Refresh Production Order) without calling a request form because it is a great processing we have created after ERP standard.

I want to set some properties/flag/variables of the request form fix without user input. Is that possible and why?
Or should I duplicate the report, creating a new one and setting the properties as I need?

Thank you.

Comments

  • SavatageSavatage Member Posts: 7,142
    OnPreReport Trigger you can define the Variables.
    example/
    "Posting Date" := WORKDATE;
    MyBoolean := TRUE;

    etc
    etc.

    That way no user needs to enter anything, especially if it's always the same. Also set UseReqForm property to NO;

    If it's just SOME
    I want to set some properties
    then you can Define it on the code behind the Request Form
  • kinekine Member Posts: 12,562
    Just add one function with parameters into the report, which will set the variables inside the report (like Direction etc.). Than you can use the report as variable of type report in your code, call the function to set the parameter, set the record filter through SETTABLEVIEW, set USEREQUESTFORM to false and run the report.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • andy76andy76 Member Posts: 616
    Thank you very much.
    It works
Sign In or Register to comment.