Announcement

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

    SmartClient 10 : Date Picker from DynamicForm stops "scrolling" at December 2020

    We discovered this in our application, but I am able to reproduce it on the SmartClient 10 Explorer site. When using a date field on a dynamic form (with the popup window to pick a date), you are unable to scroll by month past December 2020.

    I reproduced my test here:
    https://www.smartclient.com/smartcli...advancedFilter

    I added the following to the fields on the form:
    {name: "Date",
    title: "Date",
    useTextField: true,
    type: "date"},

    You can see it stop scrolling through the months like this: Click image for larger version

Name:	Screen Shot 2020-04-15 at 2.13.41 PM.png
Views:	350
Size:	837.6 KB
ID:	261960Click image for larger version

Name:	Screen Shot 2020-04-15 at 2.13.41 PM.png
Views:	86
Size:	837.6 KB
ID:	261961Click image for larger version

Name:	Screen Shot 2020-04-15 at 2.13.41 PM.png
Views:	362
Size:	837.6 KB
ID:	261962
    Attached Files

    #2
    Sorry about the extra screen shots.

    Comment


      #3
      See DateItem.startDate and endDate - you can apply those globally if you want to, via DateItem.addProperties().

      Comment


        #4
        Hi pfincke,

        try adding this to your FormItem:
        Code:
        endDate: DateUtil.createLogicalDate(2030, 11, 31)
        This thread is related.

        Best regards
        Blama

        Comment


          #5
          endDate: DateUtil.createLogicalDate(2030, 11, 31)

          Worked perfectly. Thank you.
          Last edited by pfincke; 16 Apr 2020, 13:32.

          Comment


            #6
            Okay. Same problem with a ListGridField. Still in SC 10. Is there are workaround for that? I've tried adding "endDate" to the field, but it doesn't appear to do anything.

            Code:
            isc.ListGrid.create({
                ID: "countryList",
                width:500, height:224, alternateRecordStyles:true,
            canEdit: true,
                fields:[
                    {name:"countryCode", title:"Code"},
                    {name:"countryName", title:"Country"},
                    {name:"capital", title:"Capital"},
                    {name: "Tdate", type: "date", title: "Date" , endDate: DateUtil.createLogicalDate(4712, 12, 31)} 
                ],
                data:[
                    {countryCode:"US", countryName:"United States", capital:"Washington, DC", Tdate: DateUtil.createLogicalDate(4712, 12, 31)},
                    {countryCode:"CH", countryName:"China", capital:"Beijing"},
                    {countryCode:"JA", countryName:"Japan", capital:"Tokyo"},
                    {countryCode:"IN", countryName:"India", capital:"New Delhi"},
                    {countryCode:"GM", countryName:"Germany", capital:"Berlin"},
                    {countryCode:"UK", countryName:"United Kingdom", capital:"London"},
                    {countryCode:"FR", countryName:"France", capital:"Paris"},
                    {countryCode:"IT", countryName:"Italy", capital:"Rome"},
                    {countryCode:"RS", countryName:"Russia", capital:"Moscow"},
                    {countryCode:"BR", countryName:"Brazil", capital:"Brasilia"},
                    {countryCode:"CA", countryName:"Canada", capital:"Ottawa"},
                    {countryCode:"MX", countryName:"Mexico", capital:"Mexico (Distrito Federal)"},
                    {countryCode:"SP", countryName:"Spain", capital:"Madrid"},
                    {countryCode:"KS", countryName:"South Korea", capital:"Seoul"},
                    {countryCode:"ID", countryName:"Indonesia", capital:"Jakarta"}
                ]
            })

            Comment


              #7
              Same solution, but you need to set the property to the field editor (editorProperties).

              Comment

              Working...
              X