the users are given 3 combo boxes origin, destination and
carrier. when the user selects 1 combobox only that
criteria needs to be sent. but in the
getSearchString() of the view i can't say
combo1.getValue()+ combo2.getValue +combo3.getValue()
instead i would say
String searchString="";
if combo1.getSelectedValue() !='ANY'
searchString +=combo1.getValue()
if combo2.getSelectedValue() !='ANY'
searchString +=combo2.getValue()
if combo3.getSelectedValue() !='ANY'
searchString +=combo3.getValue()
am i correct on this.
if i am passing combo1+combo2+combo3 ,then it will
return all records. in a way,i am forcing the user to
select all the combos [breaking user's hand
]
am i on the correct track ...
pls let me have ur esteemed comments