Using the back button

In my app when people click on a link to a page that displays certain data from the database it puts the reference to the table object in app data so it loads the correct info to display, but when they hit the back button I don’t have a way to reference the previous page’s data. I don’t see anywhere to put logic for navigation so I could keep a previous pages list or something. Am I missing it?

Hi, @Jacki_Saorsail

We are looking into your issue, and will help as soon as possible, could you provide your App ID, please. It would also be very helpful if you could provide us with screenshots of the logic you use for both buttons.

Regards,
Zahar

Here’s my app Id 772C46F2-CED7-474D-BECA-8133499FDA12

I mean the browser back button, not a button in my app. Ideally the app is running as a separate application so this wouldn’t matter, but if I embed it in a website, if it shows up like it does in preview they can push the browser back button.

This is the logic opening a page for a specific member (parentObjectId is a variable in the preview block they are clicking for that member)

Hello @Jacki_Saorsail

What if you set it into Local Storage?

How would the application know that the back button was pushed to load the correct data?

It will not know and it’s not needed.

You could maintain everything by yourself, store previous data in local storage, and after Back button pressing check in the ‘On Page Load’ handler if needed data exists in Local Storage. If so - handle it. After handling update/remove it from Local Storage