I am creating a predefined condition that allows a user to Type ALL or select multiple values from the list. Here is the syntax:
@Select(Organization\Plant Full Name) IN (CASE WHEN @Prompt('Select The Plant Name','A','Organization\Plant Full Name','MULTI','FREE') IN ('ALL') THEN @Select(Organization\Plant Full Name) ELSE @Prompt('Select The Plant Name','A','Organization\Plant Full Name','MULTI','FREE') END)
When I create a Crystal report with it I do not get the option to select multiple values from the list. I can only select 1 value. I thought ‘multi’ allowed the user to get the list. Any thoughts. Thanks.
Yes, if you are not using a universe. With a universe, you can put the CASE statement as a field (FIELD1). Then in another field (FIELD2), you can put something like:
Update I have found that you can have a case statement in a condition object, but it is very sketching and easy to corrupt. I have recently had all of my condition objects go bad. I have them working on my machine, but when I publish the universe and re import it the @Select I am using turns to @select and this causes a few errors. Has anyone else seen this?
Note: I have been working on XI for a few months and I can’t believe how scewed up it is. There are so many bugs I can’t beleive it We run into something new on almost a daily basis.
Each time you import the file from the server to your local desktop, you have to manually go into each @select and change it to @Select before exporting it.
If you are the only universe developer, then your local copy of the universe will always match that which is on the server. So, you can open your local copy of the universe each time you need to edit it. You can export your local copy without having to find all the @select statements and changing them to @Select.
Ah yes another work around for this wonderful version. I would also add to your idea that you lock down the universe in the repo, but it doesn’t seem to work in XI. I was able to import a locked universe with a admin and regular designer ID. I guess it is just for show.
I also face the same problem now. My condition and prompt statement also correct. I execute the prompt in designer query panel it works fine. When i call the prompt in crystal it gives the error