Toggle navigation
ReportBuilder Support Forums
Categories
Discussions
Activity
Sign In
Home
›
RAP
ReportBuilder 22.06 now available including Delphi 12.2 support!
New Blog Posts: Merging Reports -
Part 1
and
Part 2
usign RAP Passing the CurrentUserID
rbuser
May 2004
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
nardmoseley
May 2004
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
rbuser
May 2004
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
nardmoseley
May 2004
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.
Comments
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
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
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