i could’t able to set the color to Gantt chart view please resolve this issue, i have created project & multiple task respectively i selected the color but it is not showing in Gantt chart view
NCP
September 22, 2023, 6:05pm
2
Hi @rohithbt ,
Please check the @avc post.
Hi:
get_events_method is the key … this method provides data to show in gantt or calendar view. If you don’t specify it, just can access to parent doctype fields, not child table fields.
So … you need to create a method and use it in _calendar.js file, to get the data from database and render it on view.
Something like this … (note that field names could be different).
@frappe.whitelist()
def get_events(
return frappe.db.sql(
"""select from time as start_date, to_time as end_date, title …
Thank You!