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

usign RAP Passing the CurrentUserID

edited May 2004 in RAP
Hi,
I am using Delphi 7.0 and RB 7.02.
Due Date :
Using the rap I want replace the Due Date with the variable using the RAP.
How can I do that?

I want pass the CurrentUserID also to the Current User ID how can
I replace it also.

Thanks
-Bhoj

Comments

  • edited May 2004

    How would you do this in Delphi code? That should always be the first
    question.

    You can use either a TppVariable and its OnCalc event (or you could use a
    TppLable and in the OnPrint set the Caption).

    example: TppVariable.OnCalc event

    Value := 'Hello World';

    example: TppLabel.OnPrint event

    myLabel.Caption := 'Hello World';

    To pass a parameter you can use the Report.Parameters[] array. Then in the
    Variable.OnCalc event code:

    Value := Report.Parameters['myParameter'];




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


    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited May 2004
    Hi Nard,
    I don't want recompile and change my code again.
    I want know is there way without changing the code and recompile and release
    it again.

    I think I will define the AutoSearch Field for the Due Date and how can I
    pass that due value to the Report using the rap?

    Hope you understand.

    Thanks
    -Bhoj

  • edited May 2004

    Everthing in my prior response can be done in RAP code. :)


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


    Best regards,

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