Announcement

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

    Calendar/Timeline and getDateLabelText

    Hallo,

    when I overwriting getDateLabelText for a Timeline widget, the method isn't called, when the widget is created.

    I think, the same problem is in a Calendar widget with only one view.

    When a Calendar/Timeline widget is created, getDateLabelText is called before the my method is set in Calendar::onInit_Calendar().

    You can test it with a little change of the "Simple Timeline" example:
    Code:
    ....
    Timeline calendar = new Timeline() {
       @Override
       public String getDateLabelText(String viewName, Date startDate, Date endDate)
       {
          return "xxxxxxxxxxxxx";
       }
     };  
    ....
    Regards

    Peter

    #2
    Hello,

    can you reproduce the problem.
    Any chance for a fix.

    Peter

    Comment


      #3
      What version are you using? Show the exact build string by evaluation isc.version in the Developer Console.
      Last edited by Isomorphic; 25 Feb 2014, 05:19.

      Comment


        #4
        We are using

        SmartClient Version: SNAPSHOT_v9.1d_2014-02-09/Pro Deployment (built 2014-02-09)

        Comment


          #5
          Hello,

          Any chance for a fix.

          Peter

          Comment


            #6
            This has been fixed for builds dated March 1 and later - in the meantime, you can fix it by just adding this code after calling draw():

            Code:
            calendar.setChosenDate(calendar.getChosenDate());

            Comment


              #7
              Hello,

              this problem occurs again in this version:
              Version v10.0p_2015-01-01/Pro Deployment (2015-01-01)

              Please fix it also in Version 5.1.

              Regards

              Peter

              Comment


                #8
                This fix has now been ported to 5.0 and 5.1 - please retest with a build dated January 3 or later.

                Comment

                Working...
                X