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

TppParameter List inside RAP (RB 12.08)

edited March 2013 in General
Hi,

I have a parameter declared in Report named LISTA. This is a soInlist
paramater and I use another SQL to populate it (using LookupSettings).

Inside RAP I need to use all values selected by user, but the VALUES and
VALUECOUNT don´t work.

Inside report I tried this:

procedure ReportOnGetAutoSearchValues;
var
pR: TppParameter;
sT: String;
i: Integer;
begin
pR:=Report.Parameters.Items['Lista'];
st:='';
for i :=0 to pr.ValueCount -1 then Begin
st:=st+';'+pr.Values[i];
End;
end;

When I righ click & compile the code, I received the error:

Error: ReportOnGetAutoSearchValues, line 9: Expected '(' or '[', but
encountred 'ValueCount'

Where is my error?

Thank you

Samuel

Comments

  • edited March 2013
    Hi Samuel,

    The Values property is not natively available in RAP. You can access it
    using a passthru function. This is something we will consider adding
    for a later release of ReportBuilder.

    See the RAP demos for examples of passthru functions and how they are
    implemented.

    Best Regards,

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