Announcement

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

    timeline getActiveTime returns wrong values

    Smartclient Version: v9.0p_2013-08-20/Pro
    Browser: Firefox 21.0

    Hello
    When I drag a record on a timeline window and try to get the active time with timeline.getActiveTime() the value is either null or wrong.
    see Demo below (modified version form your homepage examples):
    Kind regards

    Paul

    var developers = [
    { name: "charlesMadigen", title: "Charles Madigen" },
    { name: "tamaraKane", title: "Tamara Kane" },
    { name: "darcyFeeney", title: "Darcy Feeney" },
    { name: "kaiKong", title: "Kai Kong" },
    { name: "shellyFewel", title: "Shelly Fewel" },
    { name: "garretMonroe", title: "Garret Monroe" }
    ];

    var _calStart = isc.DateUtil.getStartOf(new Date(2012, 6, 5), "W");
    var _calEnd = _calStart.duplicate();
    _calEnd.setDate(_calEnd.getDate() + 20);

    isc.Timeline.create({
    ID: "timeline",
    height: 451,
    startDate: _calStart,
    endDate: _calEnd,
    data: events,
    lanes: developers,
    headerLevels: [ { unit: "week" }, { unit: "day" } ],
    canResizeTimelineEvents: true,
    canEditLane: true,

    backgroundClick : function(){
    isc.say("Date:" + this.getActiveTime()!=null?this.getActiveTime():"nix");
    return false;
    }, showEventDescriptions: false,
    labelColumnWidth: 120
    });

    #2
    It's not clear what you mean by "When I drag a record on a timeline window", but we've just corrected an issue where the wrong column number may be used to calculate the active time. This fix will hit the builds for tomorrow.

    Comment


      #3
      This fix didn't actually make it into 9.0 until today, so it won't now hit the builds until August 24

      Comment

      Working...
      X