-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When doing search in TreeTable HIERARCHY_LEVEL eq 0 is added automatically #2818
Comments
Hello @zygimantus, Thank you for sharing this finding. I've created an internal incident 2070018176. The status of the issue will be updated here in GitHub. Regards, |
Thank you @NHristov-sap. |
Hello zygimantus, can you provide more details on this issue? How exactly are you searching on the backend? Do you add a filter on the binding? Can you provide a sample where we can debug this issue? Regards Sebastian |
Hello, @HerzogIgzorn , yes, I am using a custom filter function via filter property on TreeTable which in the end filters like this: |
Hi @zygimantus, I would expect that almost all request from this TreeTable filter on the hierarchy level. This is by design. What issue are you facing with this behavior? How would you like to change it? Relevant documentation: https://ui5.sap.com/#/api/sap.ui.model.odata.v2.ODataTreeBinding%23overview |
Closing due to inactivity. Please feel free to comment if there's new input. |
I am also facing the hierarchy level issue as 0 by default filter is going to backend when i am doing a filter |
@RandomByte This works nice for initial display of the table. The problem is when I want to filter with certain keywords (for example, 'name startsWith B') without considering hierarchy level , hierarchyLevel eq 0 (or rootLevel) is automatically added to the request sent to backend odata service. Is there a way to remove this deafault hierarchyLevel filter? |
Hello! I am currently working on the OData V4 "TreeBinding" and thus would like to learn from the past. I did not really understand which negative effect this hierarchyLevel eq 0 has on the request (or response, probably)? Can you please elaborate a bit more? Best regards, |
@ThomasChadzelek When I checked the network tab, the request was in this format (url-decoded) Is it possible to remove this default filter? |
Tracking internally as 2280186931 |
Is this issue being fixed? May I ask the expected date of release? |
Hi @HannaNguyen-new,
No, we are not even sure whether it is an issue on the client or server side. We need to investigate an example. To that end we had contacted a colleague by the same name as you. So far without a result. What we can do here is to double-check expectations. We are displaying a hierarchy. When filtering or searching, the expectation is that all nodes matching the filter/search and all parents of these matching nodes are forming the hierarchy. It would then be possible to request level 0 and get all the matching nodes in level 0 plus all parents of matching nodes in level 0. Is that also your expectation? Is that also how your service behaves? Best regards |
Hi, @uhlmannm |
Hi Hanna, as written before, we need to analyze what is happening with an example. Please provide an example! Best regards |
@uhlmannm |
Hello, Best Regards, |
I am facing a issue with a TreeTable. Suppose I have a following rows binding:
rows="{ path : '/MY_TABLE', parameters : { countMode: 'Inline', treeAnnotationProperties : { hierarchyLevelFor : 'HIERARCHY_LEVEL', hierarchyNodeFor : 'HIERARCHY_RANK', hierarchyParentNodeFor : 'HIERARCHY_PARENT_RANK', hierarchyDrillStateFor : 'DRILL_STATE' } } }"
If I am doing a search in this grid table on a back-end, it seems that HIERARCHY_LEVEL eq 0 is added automatically. Is there a way to modify this sap.ui.model.odata.v2.ODataTreeBinding functionality?
The text was updated successfully, but these errors were encountered: