We help IT Professionals succeed at work.

Can we have dynamic parameters

220 Views
Last Modified: 2010-04-21
Hello,
I have a report in which i have a dropdown which contains all the customer names. Is it possible to use another dropdown to control the data for my customer dropdown.

If i can have another dropdown that contains the customer type (Corporate and normal customers)
If i select corporate customer from this dropdown then my second dropdown should display only corporate customers similarly if i select normal customers then it should only display normal customers.

Any help highly appreciated,

Regards,
Mubashir Afroz.
==================
Comment
Watch Question

Of course you can.

If you have something in the table that differentiates the two types of customers you can populate the second drop down list.

For this since you have two options maybe a radio button list would work but basically you can construct your query to just include the where clause

i.e.

Form
Corporate   Normal

based on the selection
SELECT (LAST_NAME + ', ' + FIRST_NAME) FROM CUSTOMERS WHERE CUSTOMER_TYPE =  ORDER BY LAST_NAME

populate your drop down list with the results and that should take care of it.


~CoyotesIT

Author

Commented:
I cannot use the Forms. As all the reports are being displayed within the default reporting viewer.
So i think it will not be possible to use radio button, because the reporting services only allow textbox,dropdown as parameter input within its viewer.
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
Excellent!.. Thanks..it worked, i really appreciate your timely and accurate response.
Cheers.

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.