I put this code in the Selection Formula Editor, but the "ALL" is not available for the user to select in the available values list.
Can you explain how I can make that happen?
{day_type_vs.description} = {?ServiceType} and
{incident_log.incident_log_id} Mod 2 = 1 and
{incident_types.incident_name} = {?IncidentName} and
({incident_log.current_route_id} in {?CurrentRoute} or -99 in {?CurrentRoute}) and
{incident_log.incident_date_time} = {?IncidentDate} and
{@TimePeriod} = {?TimePeriod} and
{@earlyLate} = {?cmta_rsaStatus} and
{garage.garage_description} = {?Garage}
Are you populating the parameter from a field? I don't know how you would add another choice to that list, but there is an easy workaround.
Let's say your drop-down parameter is called {?Pick One}
Add a second parameter called {?I Want It All} that only has options Yes and No (default to No}
Now you select includes:
and ({?I Want It All} = "Yes" or {table.field} = {Pick One})
If you already have a list of values for the parameter, you can add another item. In the past we have used the 'LIKE' operator for the record selection and the Value for the All was the *.
I’m trying to add the “ALL” selection to a dynamic prompt/parameter and have not had much success. Can you give me a pretty detailed explanation on how to do this?
Do I have to create a SQL Command that grabs all the values I want for the prompt and join it to another query, that pulls the wildcard (*) value and the word ALL that a user can select.
Or is it a simpler/cleaner way to add "ALL" selection to dynamic prompt?
A clear explanation on this would be greatly appreciated!
I had not used Dynamic List of Values before, so the way I do it does not appear to work here. But if you do a command, you could add a "*" and call it 'All" (select '*' as All, be sure to put the quotes around the asterisk or you will just get all the fields). then I believe it will show up in your list, but then it is doing a cascading prompt. I am sure there are other ways of 'tricking' Crystal Reports with this, but I cannot think of how right now.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.