Adding statemets to toolbox
Hello,
We have a piece of code that repeatedly used in calc section that we would
like to put that piece of code in the toolbox so a user can simply drag and
drop it. Is there away?
Is there a way to add our customized statements into the toolbox along with
other statements such as "begin...end", "if...then...else..."?
Shoji Kaburagi
Software Developer
QS Technologies, Inc.
Piedmont Center East
37 Villa Road, Suite 508
Greenville, SC 29615
Ph: 864-232-2666 x3509
skaburagi@qstechnologies.com
We have a piece of code that repeatedly used in calc section that we would
like to put that piece of code in the toolbox so a user can simply drag and
drop it. Is there away?
Is there a way to add our customized statements into the toolbox along with
other statements such as "begin...end", "if...then...else..."?
Shoji Kaburagi
Software Developer
QS Technologies, Inc.
Piedmont Center East
37 Villa Road, Suite 508
Greenville, SC 29615
Ph: 864-232-2666 x3509
skaburagi@qstechnologies.com
This discussion has been closed.
Comments
--------------------------------------------------
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.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
How does this related to make our custom statements show up along with
"begin...end", "if...then...else..."????
If you go to "calc" tab in the report designer and choose "language" tab, a
tree view shows up...and if you click "statement" branch, you will see
"begin..end", "case..end", etc in the right bottom box.
How can we add a custom statement (so to speak) to the box??? For example,
if we want to add an item called, say, "LabelX" and if you drag the item to
left bottom, a statement such as:
Label1.Caption := Label1.Caption + 'X';
Label2.Caption := Label2.Caption + ':' + Label1.Caption;
shows up on the box just like when we drag the item "if...then" to the box
so the statement is included in RAP code??????????
Thanks,
Shoji
Yes, creating a passthu function in RAP will add your custom routines to the
code toolbox at runtime. There are full examples of creating and using RAP
PassThru function in the ReportBuilder Developer's Guide located in the
\RBuilder\Developer's Guide\... directory.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
We don't need a pass-though function. We just need to be able to drag and
drop RAP statements that are repeatedly used in a report. Our customers do
not have knowledge of object-oriented languages, so we have provide a easy
way for them to be able to code.
We are hoping that we could put that into toolbox, but it doesn't seem to be
able to do it.
Thanks,
Shoji
Sorry, I apparently did not understand your initial request. Unfortunately
it is not currently possible to add your own enteries to the statements
section of the code toolbox. This is something that we may consider for a
later release of ReportBuilder.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Thanks for your help, Nico.
Shoji
Yes, thanks for the feedback.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com