Skip to Content
Aug 27, 2019 at 12:09 PM

Fiori Elements Extension - AttachPatternMatched not firing on first navigation

633 Views Last edit Aug 27, 2019 at 12:33 PM 2 rev


I'm helping a colleague that is extending a Fiori Elements application with a custom facet(?). He needs to set the binding of a list when the detail page loads. I thought that the most straight forward way to do it was using the router, and attachPatternMatched on the detail route, in onInit. But when doing this, it doesn't fire on the first navigation, where the view is initialised. On all subsequent navigations, it works as intended. Are we doing something wrong, and is there some quirk of Fiori Elements that creates this behaviour?

We are using SAPUI5 v1.60.15.

best regards