Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Possible bug, or, my missuse...

edited September 2016 in General
Hi Team,
In order to put a line number on each detail row of a report I have added a Calc variable at the start of the row.

In the Calc Tab I have defined the Variable as "Value :=Detail.Count; ".

I note on the Properties it starts at 0. No biggie.

When I preview the report I get the following sequence...
0
2
3
4
5
And the resta re in sequence up to the last record.

Ummm. What happened to row 1?

Regards,
Ian

Comments

  • edited September 2016
    Hi Ian,

    To number rows use try using the DBCalc component set to dcCount. Optionally
    leave the datafield unassigned.



    Best regards,

    -
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited September 2016
    Nard Moseley (Digital Metaphors) wrote:


    Hi Nard,

    Cheers, that works fine. Much simpler.

    Is there an issue with the way I did it and the resultant sequence generated?

    Regards,
    Ian
  • edited September 2016
    Hi Ian,

    To use Variable, set DataType to dtInteger. In the OnCalc code

    Value := Value = 1;


    The timing of the Variable.OnCalc is such that it using Detail.Count does
    not work.



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.