cancel
Showing results for 
Search instead for 
Did you mean: 

SAP MDK - Navigate back message

0 Kudos

Dear experts,

I´m trying to set a message when the user clicks on the back button. Something like "Are you sure you want to quit...?". I´m usign onActivitybackPressed event (https://help.sap.com/doc/69c2ce3e50454264acf9cafe6c6e442c/Latest/en-US/docs-en/reference/schemadoc/Page.schema.html) but nothing happens.

Could you please help me? In the documentation I read that you can use a rule or an action on this event and I need to check some information and provide a message but this event doesn´t work. Is there another event I can use when leave a page?

Thanks in advanced,

Estefania

Accepted Solutions (0)

Answers (4)

Answers (4)

dgalbandea
Explorer

Hi Estefanía,

We have the same problem. Looks like the onActivitybackPressed event is not executed when back Android standard button is pressed.

Best Regards

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

MDK 23.4.0 which was just released this week introduces a new OnBackButtonPressed event where you can prompt the user to confirm something before closing the page. You can also prevent the back action as well.

miqueias_maia
Participant
0 Kudos

Did u find some way to make it happen?

bill.froelich

sk_ramkumar
Participant
0 Kudos

I am also having the same issue