Announcement

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

    Date picker

    Hi,

    http://www.smartclient.com/docs/9.0/....html#dateItem
    trying this example

    isc.DynamicForm.create({
    ID: "dateForm",
    numCols: 4,
    width: 600,
    fields: [
    {name:"pickListDate", title:"PickList Date", type:"date", change:"dateLabel.setContents(value)"},
    {name:"directInputDate", title:"Direct Input Date", type:"date", useTextField:true, change:"dateLabel.setContents(value)"}
    ]
    });

    isc.Label.create({
    ID: "dateLabel",
    top: 40,
    left: 100,
    width: 400
    });

    dateLabel.setContents(dateForm.getValue('pickListDate'));

    why its not showing date drop down , do i need to add some jars to enable date picker?

    #2
    What do you mean by the "date drop down"?

    And why are you looking at version 9.0, 3 version behind the latest release?

    Comment


      #3
      Please go through the link http://www.smartclient.com/docs/9.0/....html#dateItem i am trying to achieve same in my project, but its not displaying any year drop down, can you please tell me the reason, how that year drop down is displaying

      Comment


        #4
        The only way to break this project-wide would be a global change to dateItem.selectorFormat via DateItem.addProperties(), but we can't imagine anyone doing that..

        Again, use 10.1, not an older release, and if you are looking for help, make it possible to reproduce the problem - see the FAQ for help on what details you need to post.

        Comment


          #5


          I just want to know how to display that year drop down,

          i want the year range from 2012 to 2050, i am using isomorphic 10.0
          please let me know in which file and which object i need to modify
          Last edited by binduu; 24 Feb 2016, 05:29.

          Comment


            #6
            I just want to know how to display that year drop down,

            i want the year range from 2012 to 2050, i am using isomorphic 10.0
            please let me know in which file and which object i need to modify
            Last edited by binduu; 24 Feb 2016, 05:29.

            Comment


              #7
              Could you please reply for my question

              Comment


                #8
                Hello binduu, you may try this:

                Code:
                isc.DateChooser.addProperties({
                    startYear: 2012,
                    endYear: 2050
                });

                Comment


                  #9
                  what about in 8.2 version, same code works for older version also?

                  Comment


                    #10
                    Yes, I think so.

                    Comment


                      #11

                      isc.DateChooser.addProperties({
                      startYear: 1995,
                      endYear: 2020
                      });

                      isc.DynamicForm.create({
                      ID: "dateForm",
                      numCols: 4,
                      width: 600,
                      fields: [
                      {name:"pickListDate", title:"PickList Date", type:"date", change:"dateLabel.setContents(value)"}

                      ]
                      });



                      I am pasting the code before the DynamicForm. but its not working
                      Trying in 8.2 version

                      Comment


                        #12
                        try this instead:

                        Code:
                        isc.DateItem.addProperties({
                            startDate: new Date(1995, 0, 1),
                            endDate: new Date(2020, 0 , 1)
                        })

                        Comment

                        Working...
                        X