Calendar view not shown in drop down

I set up a calendar view for a custom doctype.

Also set up calendar view for the doctype:


The show calendar button works fine:


But when I open the List view,
then Calendar View option disappears.

What is happening here? Is this a bug ? Or, Do I need to set up more?

Hi @anupd:

You will need a project_daily_update_calendar.js file or …
create a client script for your doctype (list view)

frappe.views.calendar['Project Daily Update'] = {
    field_map: {
		start: "start_date",
		end: "end_date",
		id: "name",
		title: "project",
		allDay: 1,
	}
}

Hope this helps.

Ok thanks. I actually saw this link but thought it was not necessary when manually creating a calendar view.