By design, the datapipeline methods are defined to RAP. In general calling any data traversal methods while the report is generating will cause the report engine to get lost, resulting in an incorrect report.
You can easily extend RAP by defining additional RTTI classes or coding a pass-through function(s).
There are two very simple and powerful techniques to extend the capabilities of RAP infinitely. These are summarized below and covered in more detail in the RAP.hlp online help. Demos and tutorials are installed to RBuilder\Demos\RAP. The tutorial text is located in RAP.hlp.
1. RAP Pass-Through Functions
These are functions that appear in the Language tab of RAP's Code Toolbox. These functions are written in Delphi and can be called from RAP. RAP's pass-through function architecture enable's developers to add new built-in functions to RAP's code toolbox.
2. Extend RAP's RTTI
RAP's Run-time Type information defines what classes and properties can be accessed via RAP. By default the published properties of any class that is registered with Delphi's RegisterClass procedure is recognized by RAP. In addition many of the public properties and methods of ReportBuilder classes are exposed.
If the pipeline methods are exposed, why do I get a compiler error when I code DataPL.first for example? I understand that I can extend RAP at run time but I need these functions at design time so that I can compile the code.
-- Regards, Ray Metcalfe Community Service Systems
Sorry, that was a typing mistake by me. It should have read
"By design, the datapipeline methods are not defined to RAP."
You can extend RAP at design-time as well. You need to compile your custom RAP functions into a package and install it into Delphi. In the requires clause of the package you need to add
rbRCL7x, rbRAP7x // where X is 7 for D7, 6 for D6 etc.
There is an example in RBuilder\Demos\RAP\CodeSite.
Comments
By design, the datapipeline methods are defined to RAP. In general calling
any data traversal methods while the report is generating will cause the
report engine to get lost, resulting in an incorrect report.
You can easily extend RAP by defining additional RTTI classes or coding a
pass-through function(s).
--------------------------------------------------
Article: Extending RAP
---------------------------------------------------
There are two very simple and powerful techniques to extend the capabilities
of RAP infinitely. These are summarized below and covered in more detail in
the RAP.hlp online help. Demos and tutorials are installed to
RBuilder\Demos\RAP. The tutorial text is located in RAP.hlp.
1. RAP Pass-Through Functions
These are functions that appear in the Language tab of RAP's Code Toolbox.
These functions are written in Delphi and can be called from RAP. RAP's
pass-through function architecture enable's developers to add new built-in
functions to RAP's code toolbox.
2. Extend RAP's RTTI
RAP's Run-time Type information defines what classes and properties can be
accessed via RAP. By default the published properties of any class that is
registered with Delphi's RegisterClass procedure is recognized by RAP. In
addition many of the public properties and methods of ReportBuilder classes
are exposed.
--
Tech Support mailto:support@digital-metaphors.com
Digital Metaphors http://www.digital-metaphors.com
--
Nard Moseley
Digital Metaphors
http://www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
code DataPL.first for example?
I understand that I can extend RAP at run time but I need these functions at
design time so that I can compile the code.
--
Regards,
Ray Metcalfe
Community Service Systems
Sorry, that was a typing mistake by me. It should have read
"By design, the datapipeline methods are not defined to RAP."
You can extend RAP at design-time as well. You need to compile your custom
RAP functions into a package and install it into Delphi. In the requires
clause of the package you need to add
rbRCL7x,
rbRAP7x // where X is 7 for D7, 6 for D6 etc.
There is an example in RBuilder\Demos\RAP\CodeSite.
--
Nard Moseley
Digital Metaphors Corporation
http://www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com