Hi Team,
We have given colors to the event and when we uncheck the resource the event store gets filtered. Since the assignment store has the link between the resource and the event this creates issue when we have multiple resources assigned to an event and one of them is removed, the event still shows the color of the resource removed . The resource store has a field for color which gets associated to the events.
This is how we are setting out EventStore
({
"id": element.activityguid,
"name" : projectDetails.NUMBER + ' | ' + element.name,
"objectId":element.originalprojid,
"projectId": projectDetails.NUMBER,
"projectName": projectDetails.NAME,
"startDate" : element.startdate,
"endDate" : element.enddate,
"isCritical": element.iscritical,
"activityId": element.activityid,
})
This is how we are setting our ResourceStore
({
"id": link.hra_id,
"name": link.hra_id +" - " +link.hra_description,
"eventColor": link.hra_color
})
This is how we are setting our AssignmentStore
({
"id": i,
"eventId": element.activityguid,
"resourceId" : link.hra_id
})