Workflow Soluiton

 View Only
  • 1.  Mapping a Date and TimePicker Component to DateTime Component

    Posted Aug 24, 2011 06:49 PM

    Does anyone know if it's possible to map a Date and TimePicker component to a DateTime component? We accidentally used those two components instead of the DateTime one and want to combine them now.



  • 2.  RE: Mapping a Date and TimePicker Component to DateTime Component

    Posted Aug 25, 2011 08:53 AM

    aryanos, i'm familiar with the Date TimePicker Component, but i'm not sure what the "DateTime component" is that you're describing. are you able to expand on that a bit?  what's the exact name of the component?



  • 3.  RE: Mapping a Date and TimePicker Component to DateTime Component
    Best Answer

    Posted Aug 25, 2011 09:10 AM
      |   view attached

    You can try using the Calculate Date Time component. Set the date to be the Date on the stream, and set the Time to be the output of the TimePicker component.

    Then you can bind the Date Default value and the Time default value to your DateTimePicker component.

    Attached a .package to show what I've done (it's a .zip, but just rename it as a .package, and ignore any warnings on open that it's created in a higher version - I'm on a higher build)

    If you can't open, I'll describe it:

    1st comp: FormBuilder with TimePicker... output is abc

    2nd comp: Add New Data Element, adding a date to the stream... output is def

    3rd comp: Calculate Date Time... Date value is def, Time Value is abc, output is calculatedDateTime

    4th comp: FormBuilder with DateTimePicker... Date Default Value is calculatedDateTime (uncheck Start Today to expose Date Default Value), and Time Default Value is calculatedDateTime

    Hope this helps

    Attachment(s)

    zip
    WebFormsProject1 - Copy.zip   1.05 MB 1 version


  • 4.  RE: Mapping a Date and TimePicker Component to DateTime Component

    Posted Aug 25, 2011 11:27 AM

    Thanks a lot reecardo, that was exactly what I wanted to do to combine the two into one DateTimePicker value.



  • 5.  RE: Mapping a Date and TimePicker Component to DateTime Component

    Posted Aug 25, 2011 11:28 AM

    Yea, it was the DateTimePicker component that I was referring to.