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

is it posiible to set the Yvalues of a Tchart manually by a RAP function

edited June 2004 in RAP
I have the problem that i have to establish a Tchart with vertical bars. My
SQL gives me a count Value for each X-Value (for example 30,90,30,50 and so
on) . I have anothers SQL Statement that count all the lines together . I am
able to set the Maximum Value of the y-axis so that i can see the Bars
relativ to the sum, but my problem is , that the Y-Axis should show Values
from 0 to 100 , so i have to divide all the by the sum . I didn't manage to
access the YValue Property of TChart. Please help

thanks

F.-P.Krebs

Comments

  • edited June 2004

    I recommend an incrmental approach.

    1. Code a solution using Delphi code.

    2. Create a RAP pass-thru function to perform the tasks in 1 above. Call the
    RAP pass-thru function from the RAP event-handler. (See article below).

    --------------------------------------------------
    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 Corporation
    www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.