on 04-26-2023 11:09 AM
Hello everyone,
I have a problem with binding and routing. When I navigate to detailPage I use on patternMatch and bindElement to bind detail view. But when I navigate Back and go to another detail (Diff binding Path) I first see old data till the new datas are loaded. Is there any solution to this problem? Is UI5 able to use something as placeholder or am I doing something wrong with binding the detail page?
Thank you!
You can try setting your binding context as null or undefined in onBeforeRendering as mentioned in the following code example. This will clear the data when you navigate back to the master page. It might display a blank screen for the time until your data is loaded. Busy indicators can be used in that case.
onBeforeRendering(){
this.getView().unbindElement();
this.getView().setBindingContext(null);
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
8 | |
8 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.