Hello All,
I'm running into a tiny issue with a combobox with searchfield.
The combobox is filled as such:
If(!IsBlank(ComboBoxNaam.SearchText);(DataSource)
However my results are not sorted in any particular way and I wish to sort them based on A-Z.
I tried this:
If(!IsBlank(ComboBoxNaam.SearchText);SortByColumns(DataSource;"Naam";Ascending)
However once I change the code to include the sortbycolumns the [allow search] attribute is automatically turned off. I can switch it back on but the searchfield won't work regardless of the [allow search] attribute's value.
Having the same problem in a different ComboBox where the working (non sorted) code looks like this:
If(!IsBlank(ComboBoxOrg.SearchText);Filter(Distinct(DataSource;Titel);Result <> "a"))
Perhaps I am doing something wrong with the expressions but perhaps not, im not entirely certain.