I've one variable component on the report. I want user to pass the value for this variable each month or make it auto search field and pass the different values to it. How can I do that?
If you are simply passing a value directly to a variable, there is no need for an autosearch field. You could obtain this value before the report prints and assign it directly to the variable value. This could be done on the form of your main application or in a custom dialog that you create.
If you are using RAP, you can use report parameters. Take a look at the TppReport.Parameters property in the RBuilder help. This gives you the ability to create a parameter, assign its value in Delphi and then retrieve and use it in RAP.
I'm a bit unclear about what you would like to do. Are you looking to give your users the ability to change the value of a variable on a report without having to change any code in your application? Are you trying to do this completely in RAP so you just need to send then a new report template?
Comments
If you are simply passing a value directly to a variable, there is no need
for an autosearch field. You could obtain this value before the report
prints and assign it directly to the variable value. This could be done on
the form of your main application or in a custom dialog that you create.
If you are using RAP, you can use report parameters. Take a look at the
TppReport.Parameters property in the RBuilder help. This gives you the
ability to create a parameter, assign its value in Delphi and then retrieve
and use it in RAP.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
The reason is program is already coded and released to the client. I still
need a place for them to change the values.
Any other thoughts Nick.
Thanks
-Bhoj
I'm a bit unclear about what you would like to do. Are you looking to give
your users the ability to change the value of a variable on a report without
having to change any code in your application? Are you trying to do this
completely in RAP so you just need to send then a new report template?
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com