Maximo

 View Only

 Complete listing of MAF lifecycle events?

Michael Tremblay's profile image
Michael Tremblay posted Tue April 15, 2025 03:07 PM

Hi, is there a page with the complete list of lifecycle events (and their methods/functions) that can be used for mobile app development? I am having trouble finding a complete list of everything available.

Thanks!!

Bartosz Marchewka's profile image
Bartosz Marchewka

Hi @Michael Tremblay

Did you have a chance to review "Developer Documentation" that is available in maftools container. If not, please start maftools container, after the log in in the top right corner you should see icon with question mark. Please press it and select "Developer Documentation" from the available options. Aplication lifecycle diagram is available in "Developing with Graphite" -> "Application lifecycle diagram"

Michael Tremblay's profile image
Michael Tremblay

Hi @Bartosz Marchewka. Yes. After posting this thread I found what I needed and have pulled out relevant info for quick reference for my team. 

I am currently trying to understand the example here https://github.com/ibm-maximo-mobile-dev/mobile-scripting/blob/main/samples/datasource/sample01.js

Assuming this example is correct, I see named events being listened to, such as datasource.on('after-invoke-action', this.myFunction())

I haven't yet figured out how I can discover those event names or if they may be listed somewhere. I feel like at some point I did see a doc with this but I've got to find it again.

Michael Tremblay's profile image
Michael Tremblay

Okay. I found it.

In case anyone else wants more insight into how this works, look at the Datasource.js file in your browser's development tools when the app is running. IBM has some great comments in there that help if you are the type who needs to know all the ins-and-outs to understand how something works. You can probably also find this file in your maf-tools container if you dig around in there, but I have not.