Workflow Soluiton

 View Only
Expand all | Collapse all

I can't get my date pickers to default to today's date

  • 1.  I can't get my date pickers to default to today's date

    Posted Apr 02, 2013 01:43 PM

    I've checked the "Start Today" box and for some reason, the date pickers are defaulting to 1/1/1990.

    What am I missing?



  • 2.  RE: I can't get my date pickers to default to today's date

    Posted Apr 02, 2013 01:53 PM
      |   view attached

    It appears to be working fine on my 7.5(ish) build. Attached is a package that works properly for me (ignore any upgrade warnings)

    What version/build number are you using?

     

     

    Attachment(s)

    package
    WebFormsProject2.package   1.39 MB 1 version


  • 3.  RE: I can't get my date pickers to default to today's date

    Posted Apr 02, 2013 02:05 PM
    There are two ways you can do this. First option: While configuring the the "Date Picker" component, ensure the "Start Today" checkbox is selected. Second option: Just before the Form Builder component, add a "Get Current Date" component to the Workflow. Name the output something meaningful, "DateToday" for example. Now configure the "Date Picker" component, ensure "Start Today" is deselected, and configure the component to use the "DateToday" variable you just created. I just tested in my environment and both methods work correctly.


  • 4.  RE: I can't get my date pickers to default to today's date

    Posted Apr 02, 2013 03:19 PM

    HarrisT: I've tried both of those options already with no luck :(

    Reecardo: What do I do with this file?



  • 5.  RE: I can't get my date pickers to default to today's date

    Posted Apr 02, 2013 03:30 PM

    Crack open the .package and see if the date comes up as the current date or 1900 (a package file is basically just a zipped project... double clicking it should make Designer try and open it)

    My build is greater than yours so you'll probably get an upgrade warning... still try and open it. It might not be able to open up though.

    If opening it doesn't work, could you describe the setup of your datepicker with screenshots or similar?



  • 6.  RE: I can't get my date pickers to default to today's date

    Posted Apr 02, 2013 04:46 PM

    I opened your workflow, tried to run it in debug mode, and got this error (Project has validation breaks, please correct LogicBase.Core.Models.Dialog.FormDialogProject :: Resource web.config was not found, please correct)

    Not sure what version I'm using either.



  • 7.  RE: I can't get my date pickers to default to today's date

    Posted Apr 02, 2013 04:57 PM

    To check your version, open Workflow Manager and navigate to Help -> About. If both of the methods I suggested are not working it is likely you're encountering a defect on the version you're running.



  • 8.  RE: I can't get my date pickers to default to today's date

    Posted Apr 03, 2013 03:17 AM

    We had such problem when the system date/time format set on the workflow server was different from the date/time format set on the computer the process was serviced in web browser.



  • 9.  RE: I can't get my date pickers to default to today's date

    Posted Apr 03, 2013 09:13 AM

    Version 7.1. Thanks HarrisT.

     

    AnaMan, was the date wrong when you ran workflows in debug mode? Isn't that all local?

     

     



  • 10.  RE: I can't get my date pickers to default to today's date
    Best Answer

    Posted Apr 03, 2013 10:16 AM

    Will you give me the full version? For example, 7.1.1460.1791.
    7.1 has many different builds of Workflow.

    I would guess there may be a defect with this component in the version of Workflow you're running.



  • 11.  RE: I can't get my date pickers to default to today's date

    Posted Apr 03, 2013 10:46 AM

    7.1.1500.2051



  • 12.  RE: I can't get my date pickers to default to today's date

    Posted Apr 03, 2013 10:49 AM

    When you get this error navigate to the project folder in Windows Explorer and you should see Web.Config file with an extension like .bak or .old. Just remove that extention and reload the project.