Here is my table structure. I have a parent table of cement jobs. Child resources are cement pour types and events are the individual cement pours that include the pour type id, job id, start date and end date. The only way I have been able to link the events to the parent is to (in sql select) append both JobID + PourTypeID for the child resources and then append in sql the same for the events . I call the field GroupID.
Parent Jobs (jobs table)
-JobId
-JobName
Child Resource Pour Types (pour type table)
-PourTypeID
-PourType
-GroupID = (jobid + “-“ + pourtypeid)
Event Cement Pours (pour table)
- PourID
- JobDateStart
- JobDateEnd
- JobID
- PourTypeID
- GroupID = (jobid + “-“ + pourtypeid)
<DayPilot:DayPilotScheduler ID="DayPilotScheduler1"
DataStartField="JobDateStart"
DataEndField="JobDateEnd"
DataTextField="PourType"
DataValueField="PourID"
DataResourceField="GroupID"
I’m using the latest Daypilot pro version and coding in asp\vb.net.