a.borisov
(A Borisov)
#1
Hello, could you please fix inconsistency in behaviour of fts search
There is a minimal project in attachment.
Test case:
- Open FooEdit screen for some Foo entity

-
Click Afoo field

-
Click Search
ER:
only Foo entities with type = type A are shown

AR:
all Foo entities are shown

ds-bug.zip (496.7 KB)
gorbunkov
(Maxim Gorbunkov)
#2
Hi,
We’ve created an issue: https://github.com/cuba-platform/cuba/issues/2609
For the case shownin the sample project you may try to use query parameters with the :param prefix:
<query>
<![CDATA[select e from dsbug$Foo e]]>
<filter>
<c>e.type = :param$type</c>
</filter>
</query>
In this case you won’t have to manually collect parameters and pass them to the datasource.refresh(...)
method.