Hi,
In my report I am using 'station code' as a parameter. These parameter values are retrieved from the database and then they are passed to the report.These values are stored in the database like this:
parameter parameter_value
station_code "LAX|PHX|SEA|NY"
( In this case the report will include the data only for these 4 stations)
And if a user wants to have the data for all the stations, the parameter value will be like this:
parameter parameter_value
station_code "ALL"
The report uses the following formula for record selection.
//@select_code
StringVar array x := Split({?station_code},"|");
NumberVar y := Ubound(x);
if {?station_code} = "ALL" then
1 = 1
else
if y > 1 then
{station_codes.station_code} in x
else
{station_codes.station_code} = x
And then this formula is used in my 'Record selection formula' along with other condition. For example my record selection formula can be like this:
@select_code and table.product_code in ('A','B')
My question is:
Is there any way I can push @select_code to the database server because my table has 10 million records and out of them only 100k are required in this report (If somehow I can push this formula to the database server)
Any pointers regarding this will be of great help.
Thanks,
Nikhil
In my report I am using 'station code' as a parameter. These parameter values are retrieved from the database and then they are passed to the report.These values are stored in the database like this:
parameter parameter_value
station_code "LAX|PHX|SEA|NY"
( In this case the report will include the data only for these 4 stations)
And if a user wants to have the data for all the stations, the parameter value will be like this:
parameter parameter_value
station_code "ALL"
The report uses the following formula for record selection.
//@select_code
StringVar array x := Split({?station_code},"|");
NumberVar y := Ubound(x);
if {?station_code} = "ALL" then
1 = 1
else
if y > 1 then
{station_codes.station_code} in x
else
{station_codes.station_code} = x
And then this formula is used in my 'Record selection formula' along with other condition. For example my record selection formula can be like this:
@select_code and table.product_code in ('A','B')
My question is:
Is there any way I can push @select_code to the database server because my table has 10 million records and out of them only 100k are required in this report (If somehow I can push this formula to the database server)
Any pointers regarding this will be of great help.
Thanks,
Nikhil