What’s interesting is that in a normal expression in other places this variable from input is displayed normally, that is, the problem is in only the dataview filter
Perhaps this problem is also related to the fact that when we receive from SC not just a standard result from a database query, but an array with JSON values, Wappler does not normally see this data structure.
And in general, the main problem with this new filter is that it is impossible to build conditions involving other interface elements, and not just values from the data source - for example, selectors or radio buttons
Well the filter is meant for one thing that is filtering the dataview by its own fields… having all kind of expression not related to the data view own data, will really hurt performance as those are executed for each record and is really a bad practice.
Maybe you need to reevaluate the usage of your filters and having optional expressions that run each time…
@George Well, here's a simple example - I have Select a specific group of students - which by default shows the entire list and you can also select a specific group - and I want to use it in a data filter - in the old approach it all worked great.
Or, for example, I have a checkbox that selects only groups whose period falls on the current date - everything is also simple - comparison with two fields of the current date. Why would I, with the limitations of the new filter, send all these conditions to the backend and re-execute the queries?
@brad This has nothing to do with the expression itself - just a demonstration that the values of other elements can be selected in regular expressions, but not in a DataView filter - see the context above
Well you can always edit in code view as you have done before.
I will see if we can make the data view filter visual expression editor just the same as the regular condition visual expression editor, so you can choose any field
Formally, yes, but in reality it doesn’t work - since your auto-editor arbitrarily replaces many of my expressions and instead generates some kind of meaningless nonsense