Announcement

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

    Combo box button "No item to show"

    I have used combobox button with the use of "Data Source" as it works fine. I got all data what I want. When I add value in combobox through code It will be inserted into combobox also but when I use "type ahead" then It will be shown me data also.

    But then I remove all value from combobox I then click on combobox then It shows me "No Item to show" instead I have many values.

    My Data source code is as follows.
    ..................
    ..................
    <field name="student_name" title="Student Name" type="select"
    editorType="comboBox" optionDataSource="student_master"
    valueField="id" displayField="name" />

    ...................

    Source Code:
    I have refreshed commbobox as follows after add new values


    req.setActionURL(GWT.getHostPageBaseURL()+"sc/DataSourceLoader?dataSource="+refresh_inv);

    ......................



    Sometimes "type ahead" feature works fine and sometimes it doesn't.

    Thanks.

    #2
    Loading a new DataSource will not affect a pre-existing ComboBox. Also, it would not generally make sense to try to redefine a DataSource as a means of changing the data shown by a ComboBox, instead, use an override of getPickListFilteCriteria to control the criteria used in the ComboBox fetch, then have a single DataSource that responds differently based on the criteria passed.

    Comment

    Working...
    X