How I can choose conditionally parameter from multiple dependent combo boxes with subqueries and send it to a report?
I have a BIRT report which use a stored procedure which expect parameter @category_id The input should come from one of three combo boxes:
- Combo with categories level 1
- Combo with categories level 2
- Combo with categories level 3
When you select something in combo 1 combo 2 is populated executing subquery which depends on value from combo 1.
When you select something in combo 2 combo 3 is populated executing subquery which depends on value from combo 2.
If combo 3 has a selected value this is sent for parameter @category_id
If combo 3 has not a selected value and combo 2 has selected value this is sent for parameter @category_id
If combo 2 and 3 are not selected combo 1 is sent for parameter @category_id
Any idea how to do it?
this is ruff code hope it will helps you :