search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Assign custom list in event list

Asked by Anil Singh
7 years ago.

I am not able to assign custom list with the event.list. I am a Salesforce Developer

I am using it in Visual Force page.

My code is:
This is the list:= "event_ass_list"

dp.event.list=[
<apex:repeat value="{!event_ass_list}" var="evt">
{
start: '{!evt.StartDateTime__c}',
end: '{!evt.EndDateTime__c}',
id: '{!evt.id}',
resource: '{!evt.User__c}',
text: '{!evt.Name}'
},
</apex:repeat>
];
dp.update();
I am not able to see the events on scheduler

Answer posted by Dan Letecky [DayPilot]
7 years ago.

The most common problem when the events don't appear is that the resource id reference (dp.events.list[].resource) doesn't match the id of the resource (dp.resources[].id).

Note that it must be exactly matching, including type (1 !== "1") and case ("a" !== "A").

If the resource id is correct you should check the actual start and end values by inspecting dp.events.list in the javascript console.

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.