Announcement

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

    Show distinct value only for comboBoxItem's options list

    hi,

    Is there any way we can do client-side filtering on the options of the combo box for showing distinct value only?

    Understood that we can do the distinct filtering in the server-side through query or server side Criteria object; but this is not our preferred way as we have more than two comboBox in the form which shared the same datasource but displaying different columns as their option fields, doing the filtering in client side will save us a lot of codes.

    Thank you!

    SmartGWT version: 2.5
    Firefox version: 3.6.15

    #2
    You can't easily do this client-side. However, it seems like a single server operation, returning distinct rows, would suit any number of components needing that distinct set, even if they display different columns. Can you explain why you think it would need a lot of code?

    Comment


      #3
      We have 3 combo box on the form that sharing the same datasource but using different columns as the display field, so we need to build different criteria or query in business object to get different distinct object lists.

      Moreover, we try to avoid interacting the server side when user selecting option from the comboBox

      Comment

      Working...
      X