Options

Calling Report

SoumyadipSoumyadip Member Posts: 209
HI,
In Released Prod. Orders Form Under Manufacturing module we print job card.
I added a new report to the list where with other informations i have to print the current production order no. means rec.no.
how can i do it?
I tried in the following way -
1> I added a new data item production order on the report
2> I put a text box in report with source expression production order.no.
3> On the push event of the newly created menu item i write the following code
report.run(50004,TRUE,TRUE,rec);


But while printing it is showing prod order of the last item of prod orer table

how can i make it happen?

thank you

soumya

Comments

  • Options
    ArhontisArhontis Member Posts: 667
    Hello,

    I paste some comment from help:
    REPORT.RUN(Number [, ReqWindow] [, SystemPrinter] [, Record])
    Record
    .
    .
    .
    Data type: record

    Tells the system which record to use in the report. The system will use any filters attached to the record you specify.

    So I suggest you create a new variable of production order, Setrange to the currect Rec."No." and pass that new variable to your report.
Sign In or Register to comment.