Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    timeline. 'laneNameField' don't work in smarclient 12.0 / 12.1. (bug?)


    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.



    #2
    See the doc for laneNameField - it refers to the name of an attribute on *event* records - the lane itself should still have lane.name set.

    Comment

    Working...
    X