Hi,
How can we set the default value for a multi-select field?
When report is clicked i want the multi-select field to be defaulted to 'All'. Below is my parameter query
CREATE DEFINER=root
@%
PROCEDUREset1_2_getMajorBrand_test
(mydbr_param1 int, mydbr_param2 int)
BEGIN select 0,'All' as ord2,'','1' as ord1
UNION
select dv.major_brand,tm.taxvaldesc as ord2,'','2' as ord1
from sipo_db.frf_documents fd
JOIN sipo_db.dnrf_prefixes as dp on dp.id=fd.dnrf_id
JOIN sipo_db.dnrf_values as dv on dv.id=dp.dnrf_value_id
LEFT JOIN sipo_db.launch_maps as la on la.frf_id=fd.id
JOIN sipo_db.launch_maps as la1 on la1.dnrf_id = dp.id
JOIN sipo_db.tm_m_ibm_taxdtls tm on tm.id=dv.major_brand
where
(if(mydbr_param1 <> 0,la.launch_id=mydbr_param1,1=1)
or if(mydbr_param1 <> 0,la1.launch_id=mydbr_param1,1=1))
and if(mydbr_param2<>0,dv.business_unit=mydbr_param2,1=1)
group by ord2
order by ord1,ord2; END
If this multi-select is not defaulted to 'all' the subsequent parameter queries returns "No Parameters available"
Thanks