Version v13.1p_2025-04-29/Enterprise Deployment (2025-04-29)
Hello, I just noticed that if I do Calendar.setData(anArray), it doesn't show events, if the Calendar has the dataSource attribute specified, is it expected?
Test case:
then run:
Hello, I just noticed that if I do Calendar.setData(anArray), it doesn't show events, if the Calendar has the dataSource attribute specified, is it expected?
Test case:
Code:
isc.DataSource.create({
ID: "eventDS",
fields:[
{name:"eventId", primaryKey: true, type: "sequence"},
{name:"name"},
{name:"description"},
{name:"startDate", type: "datetime"},
{name:"endDate", type: "datetime"}
],
clientOnly:true
});
isc.Calendar.create({
ID: "eventCalendar" ,
currentViewName:"month",
dataSource: eventDS
});
Code:
eventCalendar.setData([
{
eventId:1,
name:"Meeting",
description:"Shareholders meeting: monthly forecast report",
startDate:"2025-04-29T07:00:00.000",
endDate:"2025-04-29T12:00:00.000"
},
{
eventId:2,
name:"Realtor",
description:"This canvas is styled by color settings on the CalendarEvent",
startDate:"2025-04-30T06:00:00.000",
endDate:"2025-04-30T08:00:00.000",
headerTextColor:"black",
headerBackgroundColor:"orange",
headerBorderColor:"darkorange",
textColor:"darkgreen",
borderColor:"darkorange",
backgroundColor:"#ffffcc"
},
{
eventId:6,
name:"Airport run",
description:"This canvas is styled by color settings on the CalendarEvent",
startDate:"2025-04-30T23:00:00.000",
endDate:"2025-05-01T01:00:00.000",
headerTextColor:"white",
headerBackgroundColor:"green",
headerBorderColor:"green",
textColor:"darkgreen",
borderColor:"darkgreen",
backgroundColor:"lightgreen"
},
{
eventId:4,
name:"Sleep",
description:"Catch up on sleep",
startDate:"2025-05-01T03:00:00.000",
endDate:"2025-05-01T07:00:00.000"
},
{
eventId:5,
name:"Inspection",
description:"This canvas is styled and disabled by custom styleName and canEdit settings on the CalendarEvent",
startDate:"2025-05-01T08:00:00.000",
endDate:"2025-05-01T10:00:00.000",
styleName:"testStyle",
canEdit:false
},
{
eventId:3,
name:"Soccer",
description:"Little league soccer finals",
startDate:"2025-05-01T11:00:00.000",
endDate:"2025-05-01T14:00:00.000"
},
{
eventId:7,
name:"Dinner Party",
description:"Prepare elaborate meal for friends",
startDate:"2025-05-01T15:00:00.000",
endDate:"2025-05-01T18:00:00.000"
},
{
eventId:8,
name:"Poker",
description:"Poker at Steve's house",
startDate:"2025-05-01T19:00:00.000",
endDate:"2025-05-01T21:00:00.000"
},
{
eventId:9,
name:"Directors Meeting",
description:"Board of directors meeting: discussion of next months strategy",
startDate:"2025-05-02T09:00:00.000",
endDate:"2025-05-02T13:00:00.000"
}
])
Comment