Home General

Changes in RB 16.01

edited December 2015 in General
Hello,

some time ago I've started to setup a test environment in order to test
newer versions of some components I'm using as I've planned to switch.
As it often happens, this slowed down and the main project had a higher
priority. Now months later I'm giving it another go.

Compiled the project so far and noticed two "issues" with RB 16.01 (was
installed back then).

1. In some events I'm using code like
- if Report.Page.PageNo > 1 then begin
- if Report.Page.PageNo = Report.Page.PageCount then begin
etc. This seems not to work anymore and has to be changed to
- if Report.PageNo > 1 then begin
- if Report.PageNo = Report.PageCount then begin

Just to be sure: is this correct? Went through the changelog, but
couldn't find anything.

2. In a calc I'm setting the content of a memo by adding lines, i.e.
Memo1.Lines.Clear;
if then begin
Memo1.Lines.Add('');
end;
if then begin
Memo1.Lines.Add('');
end;
Memo1.Visible := Memo1.Lines.Count > 0;

etc. This seems not to work anymore either. The memo is visible, but
empty, apparently.

In a similar calc I'm setting the content of a memo a bit differently:
if then begin
Value := ';
end;
if then begin
Value := Value + '; ' + ');
end;
Memo2.Text := Value;

This one still works as before.

Didn't find anything in the changelog either, so thoguht I would ask if
that's a known (and maybe already solved) issue or something related to
my environment.

Best regards,
Mark

Comments

  • edited December 2015
    Hi Mark,

    Which version of ReportBuilder are you upgrading from?

    1. The TppReport.Page property has always been a substitute for the
    TppReport.PageNo property. Were you perhaps using Report.Engine.Page?

    I checked back as far as we have records of our source and this has not
    changed since the beginning.


    2. Are you using a TppVariable.OnCalc event to populate the contents of
    a TppMemo? I tested this and it appears to function correctly.

    For your second example, you don't appear to be setting the variable
    value rather than the memo text.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited December 2015
    Hi Nico,

    14.07 and I think I had a trial of version 15 inbetween too. Both issues
    didn't exist there.

    No, there are two events: FooterBeforePrint and
    GroupHeaderBand1BeforeGenerate and I'm using Report.Page.PageNo,
    Report.Page.PageCount in the RAP code.

    Not sure what to say - it was working fine so far.

    Yes, using the OnCalc event of the TppVariable. In the first case it's
    type is integer in the second it's string, so that I can fill it's value
    first, before assigning that text to Memo.Text.

    Hm, not sure what you eman here. As I said: second ppVariable has string
    as data type. I'm filling it's value property first, then assigning that
    value to Memo.Text.
  • edited December 2015
    Hi Mark,

    For future reference, please let us know that you are using RAP so there
    is less confusion about the features you are trying to utilize.

    Please provide a simple example of this behavior in .zip format to
    support@digital-metaphors.com and we'll take a look at it with the
    latest version of ReportBuilder and compare it to earlier versions if
    needed.


    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited December 2015
    Hi Nico,

    sorry, I thought it was clear that I'm talking about RAP, but looking
    back at my first message, it wasn't indeed - my bad.

    I've installed the trial of RB 17 now and at least the problem with the
    memo is gone, it seems.

    Report.Page.XYZ still has to be changed to Report.XYZ, apparently.

    Updated my reports so far and now my running totals are "broken"... Page
    2 shows the total from page 1 + the first position on page 2 and so one.
    With RB 14.07 this was working fine.

    In the announcement message for RB17 I've seen this:
    "- Variable, enhanced support for page totals, dynamic height detail bands"

    What does this mean? Is there something like a built-in functionlaity
    for running totals or something totaly different?
  • edited December 2015
    Hi Mark,

    An issue with page totals may be an problem with some of our new
    calculation logic. Please create a simple example demonstrating this
    behavior and send it to support@ so we can test here.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.