Announcement

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

    dsField.getType().equals("date") equivalent

    Hi,

    how to replace the "date" string in a server-side DSField with an enum? constant? like with DataSource.OP_FETCH: you can write "fetch" but I prefer DataSource.OP_FETCH. Is there an equivalent for data types e.g. date?
    dsField.getType().equals("date")

    Using smartgwt 6.1p power

    #2
    Since the set of types is extensible, we do not provide an enum for type names, since it would require parallel signatures of enum or string type name. However, you could create your own constants for built-in type names only, if that's important to you.

    Comment


      #3
      Hi Isomorphic
      why enum?
      DataSource.OP_FETCH is also a string. It is not an enum. So what is the difference in this case ?

      Comment


        #4
        We explained why it shouldn't be an enum because you explicitly asked about enums. There could be constants in the framework, but at the moment, there aren't. But you can add your own.

        Comment

        Working...
        X