Announcement

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

    A Compound Form Field

    Not sure how to approach this problem in SmartGWT. Any help would be appreciated.

    I'm looking for a way to have a Dynamic Form display a field whose value is actually a compound type, as in "2 Weeks". The data model is an int (2) and an enum (Days, Weeks, Months, etc). I'm having trouble developing a form that allows this field to be edited.

    I tried defining a 3 column form (one for the field title and two for the values) but does complicate all the other fields which now have to have endRow(true). Plus I don't know how to get a field to display without its title.

    I also looked at creating a SimpleType to wrap this capability. I think that might be the better way to go, but don't have any example of this type.

    And I looked at the various Date controls provided by SmartGWT but there isn't one like this.

    I'm guessing that asthetically and practically, the best approach might be to have some kind of canvas item with its own editor. Would you recommend that approach? What about form validation?

    I'm really stuck on this problem.

    - Brenton
Working...
X