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

    CBI: SelectRecordHandler

    Hi Isomorphic,

    it would be great if there is something like SelectRecordHandler for ComboBoxItem.
    When user select entry from CBI-dropdown, that Handler would be fired (only in that case!).

    My test case is something like:
    User types "abc". Criteria for fetching data is "STARTS_WITH".
    ComboBoxItem shows values:
    1. "abcddddddddddddddddddddddddddddddddddddddddddd test test"
    2. "abceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee test test"
    3. "abcfffffffffffffffffffffffffffffffffffffffffff test test"

    User select second entry. In that moment when user select second entry I would like to update value of some other items.
    Now I have to do it in "EditorExitHandler" what is not nice at all.

    I think that this is not just "nice to have" it's more very useful to have.
    Or maybe this already exists and I'm just missing it?

    Best regards

    Selecting a record changes the value, so you simply wan't the Change or ChangedHandler. The selected record is available via getSelectedRecord().

    This of course fires for other ways of selecting a record (such as keyboard navigation, or tabbing out if so configured), but of course, if you plan to update other items based on the selection, that's what you want.