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

Varaible Values

edited August 2006 in General
Hello,

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?

Thanks in advance,
-Bhoj

Comments

  • edited August 2006
    Hi Bhoj,

    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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited August 2006
    Thanks Nick,

    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


  • edited August 2006
    Hi 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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.