Home RAP
New Blog Posts: Merging Reports - Part 1 and Part 2

Putting code in a TppVariable

edited November 2004 in RAP
Hi,

first, I have to congratulate you for the excellent suite you developed. I'm
responsible for porting reports from Crystal Reports to Report Builder and I
know that it will give us a much better software. Here's my question :

I'm developing a CrystalReport --> ReportBuilder Converter and I'm able to
convert the Crystal Report formulas in a RAP form. But how can I store it in
my TppVariable the way the Designer does it ? Here's an example :

=====================
if ppInvoiceHead['ORDERTYPE'] = 'P' then
Value := 'Package'
=====================

I can put it in my Variable in the Report Designer, but I want to do it in
run-time and automatically. How can I do it?

David Caouette
Developer
Omniciel International
http://www.omniciel.com

Comments

  • edited November 2004

    Thanks for the positive feedback. :)

    Once you have complete your converter, perhaps you will be willing to list
    it on the Companion Products section of our web site. I know other customers
    converting from Crystal would be extemely interested.

    For examples of programmatically generating RAP code

    1. Check out RBuilder\Demos\RAP\Main. Demos 41 and 42.

    2. Here are a couple of additional examples that show how to create global
    procedures and global variables.

    www.digital-metaphors.com/tips/CreateGlobalProc.zip

    www.digital-metaphors.com/tips/CreateGlobalVar.zip


    --
    Nard Moseley
    Digital Metaphors Corporation
    www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited November 2004
    This is a multi-part message in MIME format.
  • edited November 2004

    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
    example. Close the dialog.

    2. Select the Calc tab of the ReportDesigner to access the Calc workspace.
    Note that the View menu provides 3 views. In the Variables view the
    implementation is hidden and only the "formula" is displayed. In the Events
    view the event-handler declaration is shown.



    --
    Nard Moseley
    Digital Metaphors Corporation
    www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited November 2004
    Aaaaaaahhh, thank you! lol :)

    David Caouette
    Developer
    Omniciel International


This discussion has been closed.