openui5
openui5 copied to clipboard
v2.ODataTreeBinding doesn't respect `suspended` state
URL (minimal example if possible)
https://embed.plnkr.co/xu4Q4DgR9yO559Sp?show=view/Root.view.xml,preview:?sap-ui-xx-componentPreload=off
Given:
<Tree xmlns="sap.m" items="{
path: '/OrderNodeSet',
suspended: true,
...
}">
What is the expected result?
Like ODataListBinding, ODataTreeBinding respects suspended: true from the binding constructor and sends no request until oODataTreeBinding.resume() is called.
What happens instead?
Regardless of the suspended: true, the ODataTreeBinding sends a request right away, unlike ODataListBinding.
Hello @boghyon , Thank you for sharing this finding. I've created an internal incident 2180121759. The status of the issue will be updated here in GitHub. Regards, Oliver
Totally forgot that there is also ClientTreeBinding which doesn't seem to handle suspended: true either, according to the source code.
Hi @boghyon ,
I have created a requirement for supporting suspend and resume for the sap.ui.model.odata.v2.ODataTreeBinding. It is tracked as FIORITECHP1-19728 internally. Unfortunately, the responsible team will not be able to work on this request in the coming months.
What is the expected behavior for the ClientTreeBinding when it is suspended?
Best regards Mathias.
Thank you for the update.
What is the expected behavior for the ClientTreeBinding when it is suspended?
Not necessarily for ClientTreeBinding, but generally, suspended binding should prevent DOM update and firing related events in case they're not needed.
is there any update on this issue and if it is planned to be resolved? @uhlmannm
@wwrigley No, there is unfortunately no update.
Best regards Mathias.