TppParameter List inside RAP (RB 12.08)
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
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
This discussion has been closed.
Comments
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.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com