Clear the combobox previous values and populate new values in dojo

2624
1
12-03-2015 10:31 PM
SadanandacharB1
New Contributor III

Hi All

I have a three combobox, on selected change populating the other combobox.

How to clear previous combobox values in order to fill new values in the same combobox in dojo

              {                   

                    var queryClctn = new queryData();

                    queryClctn.getData(queryType).then(lang.hitch(this, this._onDistrictDataReceived), function (exception)

                   {

                        console.error(exception.message);

                    });

                }

    -----------------------------------------------------------

           _onDistrictDataReceived: function (data)

          {

                this._queryCollectionStore = new Memory();

                this._queryCollectionStore.data = data;

                this._boundaryDropDown.store = this._queryCollectionStore;

            },

Thanks,

Sadanand

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus

Sadanand,

   Just add a new Memory with empty data array:

this._queryCollectionStore = new Memory({data:[]});
this._boundaryDropDown.set('store',this._queryCollectionStore);
0 Kudos