nardmoseley
Comments
-
1. Create a myDrawCommands.pas unit and define a descendant to
TppDrawVariable - TMyDrawCommand.
2. Modify the Implementation section of TppVariable to use your new
TMyDrawCommand class.
Example:
impl… -
Sorry, but you cannot modify the interface section of any units that are
'used' by RAP.
What are you trying to accomplish?
---
Nard Moseley
Digital Metaphors Corporation
www.digital-metaphors.com… -
That is in fact a TppVariable OnCalc event-handler - its just that the
Calculation dialog hides the implementation from you.
Try this:
1. Use the Calculation dialog to enter the "formula" that you show in your<… -
Thanks for the positive feedback.
Once you have complete your converter, perhaps you will be willing to list… -
One simple way to accomplish this is via Report.Parameters[]. You can create
any number of parameters for a report. The Report.Parameters property can be
accessed via Delphi code and RAP code.
--
Na… -
1. Try including daSQLBuilder in the 'uses' clause of your application. This
should register the daSQLBuilder RTTI classes and make it available to RAP.
2. Check out the TdaSQLBuilder class in the online help. There are some co… -
TdaSQLBuilder provides a run-time interface to the TdaSQL object that is
associated with a QueryDataView. The TdaSQLBuilder.SQL property contains the
reference to the TdaSQL object. The TdaSQL.SQLText property is a TStrings
obje… -
I researched this.
1. Always free the SQLBuilder object, the destructor will internally call
the ApplyUpdates method.
2. When modifying the SQLText it is necessary to create a temporary
TStringList object as sho… -
Call SQLBuilder.SearchCriteria.Add rather than AddAutoSearch.
--
Nard Moseley
Digital Metaphors Corporation
www.digital-metaphors.com
-
Options:
1. Use TStringList
By default RAP knows about the TStringList class.
var
lText: TStringList;
begin
lText := TStringList.Create;
lText.LoadFromFile('c:\myFile.txt');
You can iterate over the CodeModule.GlobalPrograms list and call
Program.Free. The Program will notify the CodeManager to remove it from the
GlobalPrograms[] list. (So you need to be structure your code to
accordingly).
Each report and childreport can have 0 or 1 CodeModules. In other words a
CodeModule is created as needed.
Try something like this:
lCodeModule := raGetCodeModule(myVariable.Report);
// create if need…
1. Below is an article on extending RAP.
2. Most of the events in RAP occur too late to modify the dataset. Any
modifications to the SQL should be performed prior to the report engine
being initialized. ReportBuilder 9 a…
Try using the OnGetAutoSearchValues event to do something like this...
procedure TForm1.ppReport1GetAutoSearchValues(Sender: TObject);
begin
if (ppReport1.AutoSearchFields[1].FieldName = 'Company') then
…
The Report.BeforePrint and AfterPrint events work differently for RAP. This
is necessary to support the preview from the Designer.
--
Nard Moseley
Digital Metaphors Corporation
www.digital-metaphors.com
I researched this and you are correct, the Rap for RTTI for TStringList does
not include the Duplicates or CaseSensitive properties. So both the
TStringListRTTI and the Enum need to be updated.
I have created a patch for R…
The RAP RTTI system does not know about the TDuplicates enum type. To
register the enum type, add some Delphi code to the Initialization section
of one of your units.
uses
Classes, ppEnum;
initialization<…You have a corrupt installation. When you compile it is finding a mix of RB
9.01 units and some older units. See the following article...
--------------------------------------------
Article: Cleaning up a Corrupt Installation
Much of what is available is displayed in Code Toolbox.
Not all of the methods and properties of ReportBuilder classes are exposed
to RAP. It was our intent to include the basics, but keep it simple. Let
developers extend …
I think they will fire in z-order, but I not certain. The z-order is the
order of the elements as displayed in the Report Tree tool windows. You can
use BringToFront to move an item to the end of the list and SendToBack to
put i…
1. It was not our intent to change this behavior. Please send a request to
support@digital-metaphors.com and we can send you a patch for RB 9.01.
2. A work around without applying a patch, would be to add a check in your
e…
See my response to your prior post..
--
Nard Moseley
Digital Metaphors Corporation
www.digital-metaphors.com
1. Run RBuilder\Demos\RAP\Main. Use the Level directory to select the
section labeled
"21-30..global declarations, objects, and programs."
2. From the Calc workspace you can select View | Module, which presents the
gl…
In addition to creating RAP pass-through functions you can also use RAP code
to create global functions for use within a single report. There are
examples of this in the RAP demos - RBuilder\Demos\RAP...
--
Nar…
--------------------------------------------------
Article: Extending RAP
---------------------------------------------------
There are two very simple and powerful techniques to extend the capabilities
of RAP infini…
1. You need to use a TppVariable and the TppVariable.OnCalc event to perform
calculations. Please see the Calculations thread of the Tech Tips newsgroup
for some general guidelines. There is a Calculations tutorial in the
Develo…
1. Check out RBuilder\Demos\RAP\Main for some examples of creating RAP
event-handlers via code.
2. Here is an example that shows how to iterate over the RAP programs and
modify them....
www.digital-metaphors.com…
Another alternative is to use a Summary band and set its PrintPosition
property so that it aligns itself to the bottom of the page.
--
Nard Moseley
Digital Metaphors Corporation
www.digital-metaphors.com
The RAP language does not support bitwise operators. You will need to write
some custom RAP functions to do that.
--------------------------------------------------
Article: Extending RAP
----------------------------…
Try the same code from Delphi first, its easier to trace in the debugger
that way. And as a first step, execute the code prior to calling
report.Print
1. RB 9 introduces some new events to allow preparing data from RAP. Th…