hey i wrote the code as below but i have nothing at calendar window not even its title changed.
manage_calendar.js:
frappe.views.calendar[“Manage”] ={
field_map: {
“start”: “start”,
“end”: “end”,
“id”: “name”,
“title”: “title”,
“status”: “status”,
},
options: {
header: {
left: ‘prev,next today’,
center: ‘title’,
right: ‘month’
}
},
get_events_method: “manage_task.api.get_meetings”
}
api.py
@frappe.whitelist()
def get_meetings(start,end):
if not frappe.has.permissions(“Manage Task”,“read”):
raise frappe.PermissionError
return frappe.db.sql(""" select
timestamp(`date`,from_time) as start,
timestamp(`date`,to_time) as end,
name,
title,
status
from `tabManage Task` where date between %(start)s and %(end)s """,{
"start": start,
"end": end
}, as_dict=True)
Im very new to frappe please tell how did you able view this