A combo I have defined in markup gets its initial item selected once the backend makes it available, at which point I call setValue(), which throws ‘e.replace is not a function’ and no item is selected
html
<div view="combo" id="neverNotifiedPeriodCombo"
webix-data="periodOptions"
label="{{'Period'|translate}}" label-width="200" ></div>
controller
$scope.periodOptions = [
{ id: period.day, value: vm.translations.Days },
{ id: period.week, value: vm.translations.Weeks }, ...];
// where period.day is 0
...
$$("neverNotifiedPeriodCombo").setValue(neverNotifiedConfig.Period);
// where neverNotifiedConfig.Period is 0, same as period.day,
// therefore the selected item should read vm.translations.Days
How do I select a combo item programmatically?