nicocizik
Comments
-
In my testing with a simple application, the OnCalc event of a
TppVariable fires only once per traversed record.
1. Be sure the type of the Variable is set to a numeric type rather than
String if you wish to make calculations.… -
My mistake, FieldObjects only returns TppFields which are not Delphi
TFields. (See ppDB.pas).
By passing the pipeine, you could access the underlying TDataset and
access the TFields from there.
-
Hi Mark,
Try passing the TField as a TObject and then typecast it in the pass
thru function. Otherwise, you can always pass the entire pipeline
object to the passthru function then manipulate it in Delphi as you need.
Hi David,
Sorry for the delay in this response. Before running the report again,
you need to be sure to set the Region.Visible back to True so the
calculations can be made again. This is my guess to what is causing the
Perhaps instead of hiding the entire detail band, place each component
in the detail band inside a region and hide the region. Be sure
DetailBand.PrintHeight is phDynamic.
Hi David,
When setting the subreport's visibility to False, in addition to not
printing the subreport and firing events the dataset is also not
traversed. This makes it impossible to make running calculations on
non-vis…Hi Luis,
You can check the DeviceType property of the report to determine which
device is being printed to.
If you are printing from the print dialog (screen is not possible), you
can use the OnPrintDialogClose to a…Please send a simple example demonstrating this issue to
support@digital-metaphors.com in .zip format and I will take a look at
it for you.
Hi Lubomir,
This was not a known issue with RB 12.05. Does this occur with every
report? Does it happen with normal memos and DBMemos? Are you able to
recreate this with a simple example? If so, send the example in .zipHi Pascal,
Setting the Orientation of the report inside the AfterOpenDatapipelines
event is too late to have an effect on the report. You would need to
use the OnInitializeParameters event to do so for the main report.
<…Hi David,
If you are accessing your data in Dade, you can access your dataset(s)
as you normally would. []; You would just
need to create a new dataview that provides access to the separate table.
If you are acces…Hi David,
TStringList in RAP does not currently support ValueFromIndex but does
allow access to the Values property. I will see about adding
ValueFromIndex for a later release.
Thanks for the feedback.
Hi David,
From RAP, you have access to the TStringList object. It may be
possible to use this to keep track of each value that later needs to be
calculated. Otherwise, a passthru would be the easier solution.
Hi Alex,
Thanks for the clarification. How are you editing the SQL? Are you
accessing the SQL object or using TdaSQLBuilder object? What changes
are you making? Does any change (even a trivial simple change) cause an
Hi Alex,
In my testing with RB 14.05 and the DBDEMOS database, the following code
(similar to yours) compiled and functions correctly in RAP.
procedure ReportBeforePrint;
begin
Label1.Visible := (customer['Co…Please use your real name when posting to these newsgroups.
Contact support@digital-metaphors.com for a patch to fix this issue.
There is a patch available for this issue. Please send an email to
support@digital-metaphors.com requesting the patch.
Hi David,
Idealy you will update the value of the variable in the summary band
inside the OnCalc of another variable.
Likewise if you need to use the final value of a variable such as a sum,
you could use an event t…This will work for all parent reports.
Sub-Subreport2 can access components in Subreport1 and the main report.
Hi Mauro,
The new feature allows you to access the main report's objects from the
subreport. This prevents the need to create global properties to alter
components in the main report from a subreport.
Example:
Hi Mike,
We have not tried this however I would suggest getting this working in
Delphi first, then trying to move it to RAP. You will likely need to
use a very "early" firing event such as OnInitializeParameters or
OnBe…Hi Michael,
The best way to pass information to RAP is by using Report parameters.
In your case you could tie the instance of your custom object to the Tag
property of a parameter, then in RAP, using a pass-thru function
Hi Helga,
Take a look at the ReportBuilder RAP Reference topic installed into the
help system of Delphi when you install ReportBuilder. You will find a
list and description of all available routines inside the Reference |
The TppParameter.Values property is currently not available in RAP. You
will need to create a pass thru function to access it. I will add this
to our todo list to add for a later release.
Hi David,
I created a simple test using the Biolife table of the DBDEMOS database
with a KeepTogether group and a variable inside the summary band
increasing its count on traversal. The result was correct with
KeepToget…Hi David,
Which version of ReportBuilder and Delphi are you using? Are you able
to recreate this with a simple example? If so, please send the example
to support@digital-metaphors.com in .zip format and I'll take a look at <…Hi David,
Yes, this is the correct approach and if you would like to keep an
accurate count based on the pipeline traversal, you need to be sure the
data type of the variable is numeric. For caching purposes the OnCalc
…Hi David,
When making numerical calculations, you need to be sure the datatype of
the variable is set to a numerical one. This will ensure that your
values stay consistent across pages.
As a test, try setting your …Hi Jeroen,
There is now a patch available that fixes this issue. Contact
support@digital-metaphors.com to receive the patch.