Announcement

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

    how to clear the Combobox's loaded data/records

    1. Smart GWT Version 3.0
    2. Browser: IE 9
    3. Issue description:
    We are using a combobox with datasource to populate ListGridRecords as shown in the attachment. With in the the Datasource we used addData(record ) method to add data. on the click event of the Combobox we make the specfic call to et new set of values.

    Now, the issue we are experiencing is that records keep getting added (dupliacted) after eack click as we are making an external call to get the required information and setting data..

    We wanted to know how to clear the data from either the combobox/datasource ..
    Attached Files

    #2
    The ComboBoxItem will show newly added records due to automatic cache synchronization (see QuickStart Guide, Data Integration chapter, and referenced ResultSet docs). This is why the records appear.

    Can you clarify what behavior you were hoping for: never update the listing in the ComboBox? Selectively update it? By what rules?

    Note that we very strongly recommend against GWT-RPC for the reasons given here.

    Comment


      #3
      We had issues using GWT-RPC datasource as we have no control over serval things. It keeps trggering on its own ....

      Our functionality is :
      User enters key word or may type the full word .....As shown in the screen shot we display information based the criteria ....
      I have a Combobox and wanted to load it fresh each time I get different information from database...

      Comment


        #4
        You don't seem to have answered our question..

        If you think there's a framework bug involved here, please put together minimal, ready-to-run test code that we can run to see the issue.

        Comment

        Working...
        X