Announcement

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

    Timeline dates

    Few questions/problems with the Timeline component:

    1. Is there a way to set startDate and endDate dynamically for the Timeline views? I can't seem to find any setStartDate/setEndDate APIs. Do I need to destroy and re-create the entire component each time the start/end dates change?


    2. Also, showPrintPreview() doesn't work correctly with Timelines.
    The following displays the calendar but without any events.

    Code:
    isc.Timeline.create({
        ID:"timeLineView",
        height:"100%",width:"100%",
        startDate: _calStart,
        endDate: _calEnd,
        lanes: pLanes,
       // headerLevels: [ { unit: "week" }, { unit: "day" } ], //working
     	headerLevels: [ { unit: "month" }, { unit: "day" } ], //working
    	 //headerLevels: [ { unit: "year" }, { unit: "month" } ],
    	// headerLevels: [ { unit: "month" }, { unit: "week" } ],
    	// headerLevels: [ { unit: "week" } ],
        canResizeTimelineEvents: true,
        showEventDescriptions: false,
        labelColumnWidth: 120
    });
    
    
    isc.IButton.create({
      width:"180",title:"Preview",
      click:"isc.Canvas.showPrintPreview(timeLineView,{},{dismissOnEscape:true,width:'69%',height:'90%',autoCenter:true})"
    })
    The same works fine with regular calendar views.
    3. And the commented out headerLevels don't show any events, only the first two work. The events duration spans from days to 2-3 months.

    4. getPrintHTML() for calendars seems to be returning null (irrespective of the view selected).



    SmartClient_v83p_2012-12-19_Pro
    Firefox 9 and 15.
    Google Chrome 23.0.1271.97 m
    IE 8.0761

    thanks,
    - gene
    Last edited by genev; 15 Jan 2013, 12:42.

    #2
    1. use setTimelineRange(). Setting the startDate and endDate independently after draw would not make sense.

    We'll check on the other reports.

    Comment


      #3
      The problem is that I don't know in advance what would be the range of dates for each fetch of the events data. For instance:
      1. First set of events that user gets is within one year from Jan 2012 till Jan 2013. So the Timeline is created with those start and end dates and invoked for the first time.
      2. Then the user invokes the same calendar for a completely different set of events that start from Jan 2011.
      Since the start and end dates had already been set on the first invocation, calling setTimelineRange() on the 2nd set would ensure that no events are shown since the range itself is out of start/end dates range.

      What would be the right way to address this?

      thanks,
      - gene

      Comment


        #4
        setTimelineRange() affects the start and end date.

        Comment


          #5
          #3 should be fixed for tomorrow's build.

          Comment


            #6
            Thank you for the quick turnaround.

            As for the setTimelineRange(), it does re-set the range of the dates shown and the header levels dates. However, the actual date picker and its label at the top stay at the original date and are not getting refreshed after setTimelineRange() calls with new start/end dates.
            So for example, if you create the Timeline component with today's startDate and endDate a year or so ahead, the "Jan 15, 2013 through Mar 15, 2014" label will never be refreshed and the date picker will always default to the start date (today).

            Code:
                timeLineView.setTimelineRange(newStartDate, newEndDate);
                timeLineView.setData(arrEvts); //arrEvts  - array of events
                evtsTimeWindow.show();
            Reproducible on the same browsers (IE, FF, Chrome).

            thanks,
            - gene

            Comment


              #7
              This has now been addressed in 8.3p and 9.0d, along with a couple more related Timeline bugs. Please retest with a nightly build of January 18 or later.

              Comment


                #8
                SmartClient_v83p_2013-01-21_Pro:
                headerLevels and setTimelineRange() issues are fixed, the following two are still reproducible:

                2. showPrintPreview() - doesn't display events
                4. getPrintHTML() - returns null.

                thanks,
                - gene

                Comment


                  #9
                  Printing functionality for Calendar/Timeline events is not presently fully functioning but is assigned to an engineer for completion - no ETA but should be within a week or two.

                  Comment


                    #10
                    As of the February 22 nightly build of 4.0d, events should now appear in Print Preview for Timelines and Calendars

                    Comment


                      #11
                      Events appear in print preview for Calendars but not for Timelines.
                      getPrintHTML() still returns null for both.

                      Tested with SmartClient_v83p_2013-02-28_Pro on FF and IE.
                      If anything timeline creation got slower on IE.

                      thanks,
                      - gene

                      Comment


                        #12
                        Your last comment indicates that you're using SmartClient 8.3p (SGWT 3.1p), but these changes have not been added to that version, so will not work there.

                        If you're actually using SmartClient 9.0d (SGWT 4.0d), and not 8.3p, then we're going to need to see a runnable sample (your original example works fine for us, as do prints of various other Timelines and Calendars)
                        Last edited by Isomorphic; 28 Feb 2013, 10:43.

                        Comment


                          #13
                          That's correct, I'm using SmartClient 8.3p. When the fixes are going to be included for this version?

                          thanks,
                          - gene

                          Comment


                            #14
                            We've ported these changes to 8.3 - they'll appear in nightly builds from March 3

                            Comment


                              #15
                              Thank you.
                              Print Preview is working for timelines now.

                              There are 2 issues though:
                              1. Images in the lanes appear correctly in the timeline itself but in PrintPreview the path to them becomes isomorphic\system\helpers\images\

                              2. getPrintHTML() for calendars and timeviews still returns null

                              Tested with SmartClient_v83p_2013-03-06_Pro

                              thanks,
                              - gene

                              Comment

                              Working...
                              X