I have a dynamic dropdown the gets it’s values from a dataview. It had been working without error, suddenly I am getting “undefined” as the displayed result.
View:
<dmx-data-view id="year_view" dmx-bind:data="rpt_list.data.allsubmittal.groupBy(`exp_yr`)" sortdir="desc"></dmx-data-view>
Drop down control:
<div class="col-sm-2">
<select id="selectYear" class="form-control form-control-sm" dmx-bind:options="year_view.data" optiontext="$value[0].exp_yr" optionvalue="$value[0].exp_yr">
</select>
</div>