So here is the thing:

I have screen 1-2-3-4

all the screens have visualization on the Local DB ... the thing is :

if I add an element in the DB while I am in the screen number 2 all, the screens 2-3-4 can see the element that I inserted. but if I go back (previous screen) from screen 2 to 1 it is like my Local DB is cleaned up and do not have anything inside ... on the initialize of the Screen 1 there is no "delete all " but there is a refresh of the local DB

Hi Fedoms,

As you mention local DB I asume you are developing an outsystems mobile app with local storage.

It sounds like you navigate 'back' from 2 to screen 1, rather that having screen 1 as a destination screen.

Regards,

Daniel


Daniël Kuhlmann wrote:

Hi Fedoms,

As you mention local DB I asume you are developing an outsystems mobile app with local storage.

It sounds like you navigate 'back' from 2 to screen 1, rather that having screen 1 as a destination screen.

Regards,

Daniel


Well, yes I am developing an app, the thing here is that I do use the back instead of a destination screen because this screen can be called from many different parts so I do need to be more general.

I understand, if your audience is only Android you could use the following Forge component https://www.outsystems.com/forge/component-overview/2476/android-back-button to have more control on what should happen when the back button is pressed.

The  event OnAndroidBackButton can be used to implement code (like refreshing your aggregates).

Regards,

Daniel

Daniël Kuhlmann wrote:

I understand, if your audience is only Android you could use the following Forge component https://www.outsystems.com/forge/component-overview/2476/android-back-button to have more control on what should happen when the back button is pressed.

The  event OnAndroidBackButton can be used to implement code (like refreshing your aggregates).

Regards,

Daniel

Android & iOS 

don't have used it but there is a javascript API https://success.outsystems.com/Documentation/10/Reference/OutSystems_APIs/JavaScript_API/Navigation where you can register a callback registerBackNavigationHandler to run when back navigation happens.