Input Parameter for Reports

Iwan_JauchIwan_Jauch Member Posts: 35
Hi everybody

I have a report, how works with temporary tables. Everthing works well, but now I have to start the report without any Requestform! I don't use a rec parameter! I need other variable values who the user can set, when he starts the reports!

Does anyone know a solution how I can start a report with additional parameters?

Thanks a lot for your help
Greetings Iwan

Comments

  • Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    Have you tried setting the requestform (UseReqForm) property to false?

    On the report itself. :?
  • DenSterDenSter Member Posts: 8,307
    And then you'll have to create a global function in the report that accepts parameters and sets some global variables. Before you RUN or RUNMODAL the report, you make a call to this function and send it the parameter values. You are now able to use the values inside the report.
  • kinekine Member Posts: 12,562
  • Iwan_JauchIwan_Jauch Member Posts: 35
    Hi everybody

    Thanks a lot for your help! I use now a function to set the variable values.

    Best regards and have a nive day,
    Iwan
  • RoelofRoelof Member Posts: 377
    It's not that simple. Between forms not a problem, but when you want to transfer variables from a from to a report or dataport it is not always working you would expect.
    For example: creating a function in a report or dataport and set the fields in the form before launching the report or dataport is NOT working. You can only retrieve the variables in the Request form on the Report. On the dataport it is just not working.
    Reports and Dataport are initializing their object just befor doing the RUN or RUNMODAL.

    And.. ever tried to use DataportName.Import(True or false) and then run the dataport from a form?
    Roelof de Jonghttp://www.wye.com
  • kinekine Member Posts: 12,562
    Roelof wrote:
    It's not that simple. Between forms not a problem, but when you want to transfer variables from a from to a report or dataport it is not always working you would expect.
    For example: creating a function in a report or dataport and set the fields in the form before launching the report or dataport is NOT working. You can only retrieve the variables in the Request form on the Report. On the dataport it is just not working.
    Reports and Dataport are initializing their object just befor doing the RUN or RUNMODAL.

    I must disagree... it is working... we are using it... :-) Of course, you must know, what you are setting...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    Why are we digging up old topics?

    If you have a question, post a new topic!
Sign In or Register to comment.