Options

How to use integer dataitem in RTC report

pradeepgudipudipradeepgudipudi Member Posts: 8
edited 2012-01-13 in NAV Three Tier
I have created a simple report with integer, sales invoice header, sales invoice line.

sales invoice header is indented to integer
sales invoice line is indented to sales invoice header.

- Integer
- Sales Invoice Header
- Sales Invoice Line


I have written code to print the same 1 page report to 3 pages(1st page as Original, 2nd page as Duplicate, 3rd page Triplicate) by using integer.

On PreDataItem()


intNoOfLoops += 1;
SETRANGE(Number,1,3);

onAfterGetRecord()


IF Number=1 THEN BEGIN
txtCopy:='Original';
END;

IF Number=2 THEN BEGIN
txtCopy:='Duplicate';
END;

IF Number=3 THEN BEGIN
txtCopy:='Triplicate';
END;

This is working fine in classic but it is not working in RTC report.

Do i need to write any code in RTC.

Can anybody help me in this.

Thanks,
Pradeep

Comments

  • Options
    krikikriki Member, Moderator Posts: 9,090
    [Topic moved from 'NAV/Navision Classic Client' forum to 'NAV Three Tier' forum]
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • Options
    SogSog Member Posts: 1,023
    What's not working?
    Is the txtcopy in your dataset? Is it calculated incorrectly?
    Is it not visible on your layout, ...
    First check your dataset, if it's not there, then add it.
    If it's there, then we need more info.
    |Pressing F1 is so much faster than opening your browser|
    |To-Increase|
  • Options
    matttraxmatttrax Member Posts: 2,309
    You could also take a look at the layout for the existing reports that use integer data items and try to spot some differences between yours and the base reports.
  • Options
    pradeepgudipudipradeepgudipudi Member Posts: 8
    The report is printing only 1 page but it should print the same copy in 3 pages with 1st page as Original, 2nd page as Duplicate, 3rd page as Triplicate.
  • Options
    mohana_cse06mohana_cse06 Member Posts: 5,503
    matttrax wrote:
    You could also take a look at the layout for the existing reports that use integer data items and try to spot some differences between yours and the base reports.

    :thumbsup:

    Check Sales Order and Quote reports with No. of Copies set to 3..
  • Options
    pradeepgudipudipradeepgudipudi Member Posts: 8
    Thanx for the reply Mohana i think it will work..!!
Sign In or Register to comment.