SAP / openui5

OpenUI5 lets you build enterprise-ready web applications, responsive to all devices, running on almost any browser of your choice.
http://openui5.org
Apache License 2.0
2.94k stars 1.23k forks source link

Search (free search or Filter) in a hierarchy TreeTable doesn't work #3965

Closed i060582 closed 6 months ago

i060582 commented 7 months ago

Hi,

In our Fiori Application, we use a TreeTable in hierarchy mode. We annoted hierarchy behavior with annotations in CDS.

If we search a word, only the first level (at root level) matches because a clause "hierarchylevel eq 0 is automatically added. But we want to search (with free searh or filters) in different levels... I found this similar issue https://github.com/SAP/openui5/issues/2818 ... but this issue has been closed!???

For example:

0 - America -----> 1 - US ------------> 2 - New-York

0 - Europe -----> 1 - France ------------> 2 - Paris

I search "Paris" I want to get :

0 - Europe -----> 1 - France ------------> 2 - Paris

But we get nothing !

If it's not possible to search in childern then search behavior is useless. Thank a lot for your help.

yanaminkova commented 7 months ago

Hello @i060582,

Thank you for sharing this finding. I've created an internal incident DINC0058759. The status of the issue will be updated here in GitHub.

Regards, Yana

i060582 commented 7 months ago

Hi,

Thank your for your support. Do you have a feedback about this issue?

Regards,

Marc

SvBe commented 7 months ago

Hi Marc, as I also wrote in https://github.com/SAP/openui5/issues/2818#issuecomment-1538493046 the backend service has to be adjusted. The backend service has to apply the non-tree-structural filters first. The result has to contain all parent nodes up to the root for all matches. After that the filters for tree-structural properties have to be applied, like the hierarchy level. Best Regards, Sven

uhlmannm commented 6 months ago

Hi @i060582,

as you seem to be working for SAP, let me highlight that there are also SAP internal means of reaching out to us. For example internal tickets.

Best regards Mathias.