on 07-07-2020 2:32 PM
Hello,
We are using Object Page and for blocks we have defined separate controllers. Object controller does trigger method attached using attachPatternMatched but block controllers don't trigger first time. But from next object navigation it starts working.
I was using 1.60 UI5 version and today got upgraded to 1.71.11 and the apps stopped working for first time user hits Customer Navigation.
It was working just fine in 1.60....
Any thoughts?
Object Controller
this.getRouter().getRoute("object").attachPatternMatched(this._onObjectMatched, this); - All good...
Block Controller
this.getRouter().getRoute("object").attachPatternMatched(this._onBlockGeneralC, this); - this one starts triggering from next time. But first load not triggering
Another workaround would be to execute the this._onBlockGeneralC in the onInit after attaching to the route. So, the code is executed at the first time also.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes...I might need help there....How can i access the Object Parameters in inInit of Block Controller? I just started with UI5 6 months back.
Is it good idea to define a method in base controller and dump those parameters in Globals and read in inInit. Any better idea?
I have raised yesterday support ticket....
customer = oEvent.getParameter("arguments").Customer,
User | Count |
---|---|
75 | |
8 | |
8 | |
8 | |
7 | |
6 | |
5 | |
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.