Opening app in app itself with new url parameters

Hi everyone!

In my app, you can create accounts and get an overview of an account. Seeing as both need the same UI, I used a form that is empty when the page is used to make an account and it is filled in when we want an overview of an account.

When making an account, I would like the next steps to happen:

  • Initial load of the page is empty, free for the user to fill it in.
  • Once filled in, the user clicks create which sends API call to make an account in the back-end.
  • When the account is created in the back-end, I retrieve the Account Id and have a success handler "Go to App" which goes to the same app with the id added to the url parameters (this is how the form fills in information)

The issue is now, when I create an account, I clearly see the id being added to the url, but the page itself does not reload. This results in the form just being empty.

I could run the getAccountInformation call periodically, but that seems very useless as it is only relevant the one time the account is made, and not when someone is just taking a look at their information.

Is there a way to force a reload after altering url paramaters?

Sounds like a issue that you usually face with urlparams and how they behave in the old Retool experience (there is a setting that forces reload).

What you could do in your use case if you start using multipage:

  • Run a query to add a parent record (account page)
  • On success leverage "Open Page" functionality which would essentially drill down into that specific record (account_details page) where data is loaded based on parameter in URL

Hope that helps!

1 Like

Hi @stefancvrkotic , thank you for your answer!

The disabling of client-side routing only seems an option for "Go to URL" and not necessarily "Go to App". I could build up the URL myself for this specific case but it would be more logical if this forceful reload would also be available for the "Go to App" action.

I'm not using the multipage option because as of now it is still in Beta and I am essentially making my own by opening different apps I made. So I'm not sure what you mean with that second option.

Edit: I just saw the fact that any app is now multipage, I will be looking into this so thank you again for your answer

2 Likes