i create the timeline with
isc.Timeline.create({ laneNameField:'id_employee' })
the lane ldata:[{
is_active:true,
id_employee:123,
employee_name:"John(E123)"
},
{
is_active:true,
id_employee:221,
employee_name:"Mark (E221)"
}]
event edata:[{
dayDate:"2018-12-03",
endDate:"2018-12-03T10:01:48.627",
id_employee:123,
count:1,
lid_badge_error_cause_data:10653,
styleName:"eventWindow",
pivot_ed:"123#2018-12-03",
presence:1,
duration_sec:0,
startDate:"2018-12-03T06:00:00.000"
}]
but the event does not appear in the Timeline.
To see the event I have to force the lane with
for(var i=0; i< ldata.length; i++) {
ldata[i].name= ldata[i][this.laneNameField];
}
this.setLanes(data);
in smartclient 11.0 timeline worked without force the line.
Comment