MDC TableDelegate updateBindingInfo changed behaviour
What is the issue and how can we reproduce it?
I have a problem with MDC Table, since version 1.140.0 TableDelegate method updateBindingInfo doesn't work as expected
In the controller I am doing rebind table in order to update the binding path of the table, for example from
/Order(1)/orderItems
to
/Order(2)/orderItems
In that way, chaging the .path in the updateBindingInfo
JSONTableDelegate.updateBindingInfo = (oTable, oBindingInfo) => {
TableDelegate.updateBindingInfo.call(
JSONTableDelegate,
oTable,
oBindingInfo,
);
oBindingInfo.path = `/Order('order_number')/orderItems`;
oBindingInfo.parameters = { $count: true };
};
So previous in 1.139.0 it was checking not only Binding but also that path has changed
if (!oBinding || oBinding.getPath() !== oBindingInfo.path) {
this.rebind(oTable, oBindingInfo);
return;
}
But now that path check was removed in 1.140.0
What would you suggest of how to change the delegate path to the data? Thanks a lot in advance
Which OpenUI5 version is your project targeting?
1.140.0
Is the issue device- or browser-specific?
No response
Confirmation
- [x] I have searched the existing issues and reviewed the relevant documentation as well as the API reference.
- [x] I am not disclosing any internal or sensitive information.
Hi @http9991,
Thanks for the report! To investigate this issue, we need a reproducible example. Could you provide:
- A minimal sample app showing the table setup and rebinding logic
- Sample data/mock service
- Steps to reproduce the issue
This will help us confirm the behavior change and provide a proper solution. A JSBin/CodePen link or GitHub repo would be ideal.
Thanks! Dobrin
@dobrinyonkov I've created an example , please try to switch context using 'play' button, in case of v4 Delegate it isn't working, using standard one - working
Hello @http9991 Thank you for sharing this finding. I've created an internal incident DINC0650512. The status of the issue will be updated here in GitHub. Regards, Dobrin
The issue has already been fixed in version 1.141, which should be available soon. There are no patches planned for 1.140, since it's basically replaced by 1.141, so there won't be a downport.