AnsweredAssumed Answered

Dojo Combobox run time problem

Question asked by Nadir_Hussain on May 22, 2015
Latest reply on May 24, 2015 by rscheitlin

i want to load values in drop down list dynamically.but it throws error.code is below.Please help.



<select id="FeatureType" dojotype="dijit.form.ComboBox" style="width:300px;font-size:18px; margin-top:55px;margin-left:660px;position:fixed;direction:rtl;fixed;z-index:90;" autoComplete="true" forceValidOption="false" value="Select Feature" ></select>


script code:

var newArr = [];

                     newArr.push({ name: "ALdddddddddddL0" });

                     newArr.push({ name: "ALdddddddddddL1" });

                     newArr.push({ name: "ALdddddddddddL2" });

                     newArr.push({ name: "ALdddddddddddL3" });

                     var dataItems = { identifier: 'name', label: 'name', items: newArr };


                     var store = new{ data: dataItems });

                     dijit.byId('mySelect').store = store;


but it through error.i have already call the required libraries in page


cannot set property 'store' of undefined.


Please help.It is in dojo.


Thanks in advance.