Skip to Content
0
Jun 29, 2021 at 07:43 AM

Lifecycle methods in Fiori Elements custom fragments

466 Views

Hi experts,

I am working on a List Report where I am using a Process Flow rendered inside a custom fragment (similar to step 3 of this tutorial) to visualize a process on the Object Page.

I would like to call the optimizeLayout method on this process flow when the page loads. To do this I'm guessing I would need access to something like the onInit lifecycle method of the Object Page Controller. How does one access this in a Fiori Elements app? Or if this is the wrong approach, how can you go about calling methods on page load in a Fiori Elements app? One thing to note is that I am using the Odata V4 model.

Many thanks!

Attachments

process-flow.png (40.7 kB)