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

Report parameters and values

edited October 2009 in General
Hello Folks,

Values property of a ppParameter is read only. How can I change a concrete
element of Values when a parameter has more than one value (in RAP and in
CODE)?

Regards,

Francis

Comments

  • edited October 2009
    You can use the Items array to access the TppParameter object.

    example:

    Report.Parameters.Items['ParamName'].Value := 'test';

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

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited October 2009
    Hello Nard, my question is about the parameters with multiple values with
    search operator like soBetween or soInList.

  • edited October 2009

    Set the SearchExpression property to a comma delimited list of values.

    example:

    Report.Parameters.Items['ParamName'].AutoSearchsettings.SearchExpression :=
    'value1, value2';


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

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited October 2009
    Hello Nard, as you can see, I just started a new thread about this
    issue(Parameter search expression bug). Finally I founded this way of
    editing the "values" property by this way. But there is a bug about date &
    datetime formatting related in this thread.

    Thank you very much.

    Francis
This discussion has been closed.