I have select for sorting DataView data. But for some reason there is no dynamic value binding there.
You don't need a dynamic event for this.
Just add the sort under the dynamic attributes:
and use your select input there.
I tried it, but I have another complication - the sorting fields are inside a nested 'good' object. I'm trying to use an expression like good.ean13 in Select - but it doesn't seem to work.
Please paste your select menu code
<select id="select_sort" class="form-select style12 form-select-sm">
<option selected="" value="good.ean13">ean13</option>
<option value="good.good_name">сорт. по названию</option>
<option value="good.base_price">сорт. по цене</option>
<option value="good.manuf_name">сорт. по поставщику</option>
<option value="good.brand_name">сорт. по бренду</option>
<option value="good.country_code">сорт. по стране</option>
</select>
try good[0].ean13
So which value do you need to send to the data view?
I have this answer in query and I need to use it in data view. This object consists of three nested objects and the fields inside the 'good' object are used for sorting.
But what expression is used as a source for the data view then?
get_filter_goods.data.query_goods
The data itself is displayed normally, I can’t configure just the sorting
I don't think it's possible to sort the data view by some properties located in nested objects.
I changed it to a flat structure and it worked as a temporary solution