Announcement

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

    ComboBoxItem: numeric character filter on display field selects by id

    I'm using a ComboBox item backed with an optiondatasource. The datasource has two fields, the id (numeric) and a display field (string). The problem is that the display field has numeric characters in it, e.g.:
    ID value
    12 ABC_3223213
    13 ABC_1234567
    14 ABC_3412456
    etc.

    now when the user wants to type a filter on the items displayed, thus the display values, he starts typing "12". What he expects would be that the list will show the last two items in the example, but what actually happens is that the SelectItem interprets the data as a number and selects the first item (by ID). Any ideas on how to filter the displayfield on numeric values?

    thanks,
    ITB

    #2
    Try to get the displayValues using ComboBoxItem.getDisplayValue() method.

    Thanks,
    Senthil

    Comment

    Working...
    X