Hi guys,
I am doing a push notification and wanted to call a particular page to navigate to a page and execute a particular function.
Currently I use a format:
sap.ui.getCore().getEventBus().publish("nav", "to", { id : "test", data : { path : "/data/13" } });
to navigate to a "test" page.
If I put the function in the onBeforeShow method, it would run and fetch my data "/data/13" perfectly.
The problem is if I am already in that page and i wish to run the function, but i can't run it in onBeforeShow.
So how can I handle such situation?
Thanks