Announcement

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

    SelectItem with datasource

    Hi,

    I have a SelectItem that retrieves the option values from a datasource using
    selectItem.setOptionDataSource

    This is working fine when loading the page for the first time.

    However, based on other selections the user is making in the UI, I would like that the selectItem options should change.

    I'm not sure how this is best done. My thoughts was to add a event handler that creates a new Criteria object and calls fetchData(criteria) on the selectItem. However, there is no fetchData(Criteria criteria) method on the selectItem class. I can access the datasource directly and call fetchData(criteria, callback), but this does not seem to refresh the option list.

    Anyone have any ideas how this can be done?



    Thanks
    Rolf

    #2
    I was able to figure it out.

    I used selectItem.setPickListCriteria(criteria), followed by a selectItem.fetchData().

    Regards
    Rolf

    Comment

    Working...
    X