T
Tastic
Hi, I am working on a search & filter form using about 6 different
dropdown boxes, and possibly more to come.
Here is what I am trying to acheive; if the user does not specfiy any
choice in a ddb then then that particular filter is not applied... I
am probably not making a lot of sense here...
dd1 = Business Type (accountant/lawyer/restaurant etc)
dd2 = Business Category (Service / Price / Product Quality etc) ie
what is more important to the user
dd3 = product type(for accountant this would be type of accountant,
for a restaurant it would be type of cuisine)
dd4 = suburb
dd5 = City
dd 6 = Country
in order to select suburb the user will need to first select City,and
in turn first select country
this part is fine, I know how to set this up
but if the usr only selects values from say dd1 and dd3 and dd6 then
the other parameters should be removed but leave the ability for the
usr to then turn around and filter more
I have done this with one ddb through objectdatasource the DAL has two
select queries one with the parameter and one with out. The BLL simply
states if parameter >0 call (select without)
else call (select with)
My actual question: am I going to have to sit here and manually go
through every possible combination of parameters used? (this would be
exceptionally time consuming not to mention messy)
or is there something I can do in my BLL to add or remove parameters
depending on selections
dropdown boxes, and possibly more to come.
Here is what I am trying to acheive; if the user does not specfiy any
choice in a ddb then then that particular filter is not applied... I
am probably not making a lot of sense here...
dd1 = Business Type (accountant/lawyer/restaurant etc)
dd2 = Business Category (Service / Price / Product Quality etc) ie
what is more important to the user
dd3 = product type(for accountant this would be type of accountant,
for a restaurant it would be type of cuisine)
dd4 = suburb
dd5 = City
dd 6 = Country
in order to select suburb the user will need to first select City,and
in turn first select country
this part is fine, I know how to set this up
but if the usr only selects values from say dd1 and dd3 and dd6 then
the other parameters should be removed but leave the ability for the
usr to then turn around and filter more
I have done this with one ddb through objectdatasource the DAL has two
select queries one with the parameter and one with out. The BLL simply
states if parameter >0 call (select without)
else call (select with)
My actual question: am I going to have to sit here and manually go
through every possible combination of parameters used? (this would be
exceptionally time consuming not to mention messy)
or is there something I can do in my BLL to add or remove parameters
depending on selections