Hi,
There might be a simple solution for this but since i am new to crystal, i can't seem to be able to solve this.
Background: crystal 8.5 runtime (crpe32.dll),Sql server 2000 database and Delphi application.
Problem:
We have an Delphi application which uses Crystal for reporting. Our application asks for parameter values and sends them to Crystal runtime when calling the report.
Delphi application is sending a multiselected parameter as string (csv for example 1,2,3).
I want to use this parameter in Crystal simply to restrict the data that is retrieved from the database.
In Crystal i have created parameter P_HourType and tagged
Allow multiple values and discrete values.
In select expert i have {Mytable.Myfield} = {?P_Hourtype}
This works just fine when running in Crystal developper but
when i run the same report through the runtime it does not show any values if more than one code was selected ( i.e parameter has multiple values).
I have tried to search for solution from this forum but so far i have not been able to find one.
Please can someone tell me what i am doing wrong ?
There might be a simple solution for this but since i am new to crystal, i can't seem to be able to solve this.
Background: crystal 8.5 runtime (crpe32.dll),Sql server 2000 database and Delphi application.
Problem:
We have an Delphi application which uses Crystal for reporting. Our application asks for parameter values and sends them to Crystal runtime when calling the report.
Delphi application is sending a multiselected parameter as string (csv for example 1,2,3).
I want to use this parameter in Crystal simply to restrict the data that is retrieved from the database.
In Crystal i have created parameter P_HourType and tagged
Allow multiple values and discrete values.
In select expert i have {Mytable.Myfield} = {?P_Hourtype}
This works just fine when running in Crystal developper but
when i run the same report through the runtime it does not show any values if more than one code was selected ( i.e parameter has multiple values).
I have tried to search for solution from this forum but so far i have not been able to find one.
Please can someone tell me what i am doing wrong ?