Announcement

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

    Question: Handler for "selected item from ComboBoxItem-PickList"

    Hi Isomorphic,

    do you have a suggestion for the following use-case?
    I have a DynamicForm with zipcode and city entry. The PickList I show for zipcode also lists the city as a second column via setPickListFields(zipcode, city). The setPickListFilterCriteriaFunction(new FormItemCriteriaFunction(){...} also looks in the city field for the entered string.
    This works like a charm so far. When I select a item from the list, the zipcode is written in the field (standard behaviour).
    What I'd like to do is to fill out the "city" field as well as soon as a item gets selected.

    Is this currently possible (other than a addChangedHandler+additional DS-fetch with the zipcode as criteria)?
    What I could imagine is to look in the cached ResultSet of the PickList which should contain the row. Is this a feasible approach?
    Or is a new API like "addPickListItemSelectedHandler(...Record r...)" needed for this?

    Thank you,
    Blama
    Last edited by Blama; 21 Aug 2013, 08:34.
Working...
X