Hi, Is it possible to create a dropdown parameter in Report Builder?
The result I want to get is (for example):
The parameter is "Project". Next to the parameter should be a dropdown box from where I can select a project (for example: project1, project2, ...). Once the parameter is selected, and I click "view report", the report should only display data from the selected project.
The only other options available in the Filter dialog screen are:
"Field" is in list
"Field" contains
"Field" equals
But none of these methods of creating a parameter generate a dropdownbox from where items can be selected, equal to those in the database.
So ... is it even possible to create a dropdown parameter with values out of the db? Or are there any workarounds?
You could create a second dataset for the paramaters. Then in that data set something like this to call the data from the db:
Select project_name
from project_name_table
Group by project_name
Then set your paramater equal to the new dataset.
|||rs12345 wrote: You could create a second dataset for the paramaters. Then in that data set something like this to call the data from the db:
Select project_name
from project_name_table
Group by project_nameThen set your paramater equal to the new dataset.
You are talking about reports generated through a Report Server Project. But I created a model (from a Report Model Project) and then I want to generate a report on that model through the Report Builder! There it is not possible to create datasets.
Aren't there any MS people on here who can confirm if it is possible or not? (Possible to work with a parameter displayed as a dropdownbox containing values from the database)
|||To create a filter condition based on a report parameter, open the Filter dialog, add a filter condition based on the appropriate field, then click on the field name (not the operator) and choose "Prompt" from the menu that appears.
Note that you will only get a dropdown when running the report if you see a dropdown in the Filter dialog as well. The presence of the dropdown in both cases is determined by the Entity.InstanceSelection or Attribute.ValueSelection property in the report model (whichever applies).
Hope that helps!
|||Thanks!Changing those properties did the trick!
No comments:
Post a Comment