Hello,
I have been struggling with this issue for a few days now and I have a deadline so any help will be greatly appreciated.
I am using Crsytal XI and it is connected to a SQL database.
I have 5 parameters for my report right now. (2 are for the start and end date, one is just so the user can choose a report name, and the other two are Item Name and Section Name )
Just some general info: Each section contains a certain number of items (depending on the date). Right now if they leave the Item Name and Section Name parameters blank, it will return all of the item and section names in the report.
If they put UW in the ItemName parameter and leave the SectionName parameter blank, it will return only items with UW in the name, and all sections that have those items.
Here is the formula I'm using now (same for both parameters):
--> Formula:
IF {?Item Name} ="" then {SalesItem.ItemName}
else
lowercase ({SalesItem.ItemName})
--> Record Selection Formula:
{?Item Name} IN {@ItemName Parameter}
This works great. But now what I need to add is the following:
-I need the user to be able to enter multiple values for both parameters.
-I also need the user (like I'm doing now) to be able to enter only part of an item/section name, and the report return all items and/or sections that have what the user typed in. (For example, user types item name: soc report returns: Humane Society ..and any other item with soc in it)
- When I change the multiple values option in the parameter to "true" it then gives me the error: This Array must be subscripted. For example: Array
I'm not even sure what subscripted means?!
It then takes me to my record selection formula, so I added "[1]" :
{?Item Name}[1] IN {@ItemName Parameter}
-Do I also need to add something to my formula field?
It gets rid of that error, but when I enter more than one value, it only returns back values for the first item entered. Nothing else.
Any ideas?
Thanks in advance!
I have been struggling with this issue for a few days now and I have a deadline so any help will be greatly appreciated.
I am using Crsytal XI and it is connected to a SQL database.
I have 5 parameters for my report right now. (2 are for the start and end date, one is just so the user can choose a report name, and the other two are Item Name and Section Name )
Just some general info: Each section contains a certain number of items (depending on the date). Right now if they leave the Item Name and Section Name parameters blank, it will return all of the item and section names in the report.
If they put UW in the ItemName parameter and leave the SectionName parameter blank, it will return only items with UW in the name, and all sections that have those items.
Here is the formula I'm using now (same for both parameters):
--> Formula:
IF {?Item Name} ="" then {SalesItem.ItemName}
else
lowercase ({SalesItem.ItemName})
--> Record Selection Formula:
{?Item Name} IN {@ItemName Parameter}
This works great. But now what I need to add is the following:
-I need the user to be able to enter multiple values for both parameters.
-I also need the user (like I'm doing now) to be able to enter only part of an item/section name, and the report return all items and/or sections that have what the user typed in. (For example, user types item name: soc report returns: Humane Society ..and any other item with soc in it)
- When I change the multiple values option in the parameter to "true" it then gives me the error: This Array must be subscripted. For example: Array
I'm not even sure what subscripted means?!
It then takes me to my record selection formula, so I added "[1]" :
{?Item Name}[1] IN {@ItemName Parameter}
-Do I also need to add something to my formula field?
It gets rid of that error, but when I enter more than one value, it only returns back values for the first item entered. Nothing else.
Any ideas?
Thanks in advance!