locked
Autofill Data/Time into field in Lightswitch app RRS feed

  • Question

  • I am trying to auto fill the data and time on a "create a new report" screen instead of have the user select a date and time.

    How can I accomplish this? I tried the Date/Time Viewer but it just shows a blank field.

    Tuesday, January 28, 2014 5:27 PM

Answers

  • If you do the the date will be filled with (now) when you create a new entity:

    Sven


    Sven Elm

    • Marked as answer by Eric4381 Tuesday, January 28, 2014 7:36 PM
    Tuesday, January 28, 2014 5:52 PM

All replies

  • Hi

    LS HTML or LS Desktop?

    Sven


    Sven Elm

    Tuesday, January 28, 2014 5:46 PM
  • Do you want a special date or now date?

    Sven


    Sven Elm

    Tuesday, January 28, 2014 5:47 PM
  • Hi

    LS HTML or LS Desktop?

    Sven


    Sven Elm

    This is a LS Desktop app.

    Thanks

    Tuesday, January 28, 2014 5:47 PM
  • No problem.

    Did you set date as required in the table?

    Sven


    Sven Elm

    Tuesday, January 28, 2014 5:49 PM
  • I would like the Now date for this screen and no i did not set as required. Should I?
    Tuesday, January 28, 2014 5:51 PM
  • If you do the the date will be filled with (now) when you create a new entity:

    Sven


    Sven Elm

    • Marked as answer by Eric4381 Tuesday, January 28, 2014 7:36 PM
    Tuesday, January 28, 2014 5:52 PM
  • When I have it as a Date/Time Picker? I don't see the mark as required box when I have it that way.
    Tuesday, January 28, 2014 5:54 PM
  • Hi

    You have to mark it as required in the table designer (Server, ApplicationData (or other datasource)

    Sven


    Sven Elm

    • Proposed as answer by Sven Elm Tuesday, January 28, 2014 7:34 PM
    Tuesday, January 28, 2014 5:55 PM
  • I saw that as soon as I sent the last message, sorry...

    Thank you for your help.

    Tuesday, January 28, 2014 5:56 PM
  • No problem.

    Good luck!

    Sven


    Sven Elm

    Tuesday, January 28, 2014 5:57 PM