Announcement

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

    DSField.getType()

    Is there any enumeration/String values for DSField.getType() on the server side? It returns only a string.. .I would like to compare it , e.g.
    if (field.getType().equals(Types.INTEGER)) ...

    And writing if (field.getType().equals("integer")) doesn't seem right..

    Using smartgwt 4.1p power.

    #2
    You can call FieldType.INTEGER.getType() to get the string value from the Enum.

    Comment


      #3
      do you mean getValue() ? getType() returns: The method getType() is undefined for the type FieldType

      Comment


        #4
        Thanks for the correction - yes, the API is "getValue()" not "getType()".

        Comment

        Working...
        X