Temporary Recordvariable and Report call

Iwan_JauchIwan_Jauch Member Posts: 35
edited 2005-11-24 in Navision Attain
Hi everybody

Is it not possible to run a report with a temporary record variable as input parameter?

Does anybody know if there is a way to do this?

Thank for your help
Greetings,
Iwan

Comments

  • Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    You can make a function in the report that copies the table, like in the Sales statistics form.
  • krikikriki Member, Moderator Posts: 9,112
    Something like this in the report:

    GLOBAL VARIABLE tmpTemTable : record X
    Function InputParameters(VAR ItmpTemTable : record X as temptable)
    BEGIN
      ItmpTemTable.RESET;
      IF ItmpTemTable.FIND('-') THEN
        REPEAT
          tmpTemTable := ItmpTemTable;
          tmpTemTable.INSERT(FALSE);
        UNTIL ItmpTemTable.NEXT = 0;
    END;
    

    and for calling the report
    CLEAR(rptMyReport);
    rptMyReport.InputParameters(tmpMyTempTable);
    rptMyReport.RUNMODAL;
    
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.