Announcement

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

    #16
    We would not recommend Velocity for more than a one-liner.

    You cannot do step-through debugging with Server Script, but it is appropriate and useful for developers who feel comfortable writing a few lines of code without step-through debugging support.

    Comment


      #17
      On review, if you look at the docs for validator.serverObject:

      https://www.smartclient.com/smartcli...r.serverObject

      We already show a one-liner to get the existing record. We don't really see anything further we can add here that would assist in writing shorter code; in particular note that "get the DB data and merge", meaning overlaying submitted values on top of the DB record, would not be correct, since if you used the combined record to do validation from that point forward, you would be allowing the client submitted data to override actual stored DB values, and the whole point here is to make sure you are using the real stored values.

      So we don't currently see helper methods we could add that would shorten typical code here. If you think there is something to add, please propose a concrete API and show how it would be used in an example validation scenario.

      Comment

      Working...
      X