S
Savvoulidis Iordanis
I have a report based on a query object.
In the query's criteria I use a function I created, GetParam(x)
where x, is the parameter's array index, from a global parameters array
e.g. for a query object that is based on 'select * from customer where
id=GetParam(0)',
The 0 index in the parameter values array, has the id value of the customer
I want to retrieve.
(by the way, this is the best way I could invent, to pass a parameter value
for reports,
as I could not somehow pass any value for a parameter defined in the query
using the Query menu.
If anyone has done this, I 'd be glad to know how he/she did it)
Now, the problem I have, is how to pass a value for use in an IN clause.
If the column is of string type and in the criteria, I use : IN
(getparam(0))
where getparam(0) returns: "AX1" , "AX2" , "GB1" , "GB2" as one string
value,
the report displays no rows as the query returns nothing, and I can't figure
out why.
I also changed the parameter's value to "AX1" ; "AX2" ; "GB1" ; "GB2" as one
string value, but no luck.
Also, how can I display the sql executed by a report when it is based on a
query as described above?
Could anybody help me here?
TIA
Savvoulidis Iordanis
Greece
In the query's criteria I use a function I created, GetParam(x)
where x, is the parameter's array index, from a global parameters array
e.g. for a query object that is based on 'select * from customer where
id=GetParam(0)',
The 0 index in the parameter values array, has the id value of the customer
I want to retrieve.
(by the way, this is the best way I could invent, to pass a parameter value
for reports,
as I could not somehow pass any value for a parameter defined in the query
using the Query menu.
If anyone has done this, I 'd be glad to know how he/she did it)
Now, the problem I have, is how to pass a value for use in an IN clause.
If the column is of string type and in the criteria, I use : IN
(getparam(0))
where getparam(0) returns: "AX1" , "AX2" , "GB1" , "GB2" as one string
value,
the report displays no rows as the query returns nothing, and I can't figure
out why.
I also changed the parameter's value to "AX1" ; "AX2" ; "GB1" ; "GB2" as one
string value, but no luck.
Also, how can I display the sql executed by a report when it is based on a
query as described above?
Could anybody help me here?
TIA
Savvoulidis Iordanis
Greece