Set Calendar events from child table

I am working on a app and its calendar , but cant figure out how to create multiple events and set the field map from child table.
i.e - child table will have multiple events or time slabs-
so i want to create multiple event marking for a single parent doctype.

i tried with

field_map: {
“start”: “child_table.starts_on”,
“end”: “child_table.ends_on”,
“id”: “name”,
“allDay”: “all_day”,
“title”: “customer”,
“status”: “status”,
“some_field”:“child_table.some_field”
},

But doesn’t do the trick ,only creates if i have a single start on in the parent doctype.
also how can i set colors for a doctype staus.

thanks in advance.

1 Like