• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

datefield advanced techniques?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • datefield advanced techniques?

    Looking for a "best practice" of how to handle datefields in a form when the date field has yet to be set. In other words the value is '0001-01-01'

    I do not see a renderer config it could use that I could make a function and test for it. Also, I don't want to loose the luxury of using the loadRecord() method on the form.

    What would be the best way to display blank instead of '0001-01-01'?

    do a case statement in the SQL on the backend and send blanks in the JSON?
    use a convert function in the model?
    listen for a change event and run a function?

    others???

  • #2
    i believe this is a matter of preference. I normally do it on the sql backend to keep the front end from doing any more work than it has to.

    Comment

    Working...
    X