openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

MDC TableDelegate updateBindingInfo changed behaviour

Open http9991 opened this issue 1 year ago • 4 comments

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.

http9991 avatar Sep 19 '25 11:09 http9991

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 avatar Sep 23 '25 11:09 dobrinyonkov

@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

http9991 avatar Sep 26 '25 12:09 http9991

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

dobrinyonkov avatar Sep 26 '25 13:09 dobrinyonkov

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.

JumpNRun avatar Sep 26 '25 15:09 JumpNRun