Active datepicker when a predefined query is selected