Transfer data from one page to another

Hello, how to transfer data from one page to another.

example: I have a category form and I want to edit it on another page, and not use a modal

If it’s saved in the database then you just read the data on the other page. If you’re not saving to a database then local storage is probably best - Data Store in Wappler.

I don’t know if I explained it right: I’m getting data from a table, and when I click on the edit button, it takes the selected data to another form for editing.img

Save the value into “Variable” and then just use this variable value into another page. (NodeJS SPA)

thanks Alexander

The normal way is to define a parameter in the route for the page so it is passed from one page to another.
See this video on how to do it.

1 Like

Using variables (i assume you mean session variables) can be problematic due to timing issues, better to use routing

1 Like

as always helping us.

thanks so much.

1 Like

That’s right Brian, and when not using routes I use sessions and variable, so in input parameter in the server connect I set both values, something like:
var_newcontent.value || session1.data.ses_newcontent
This allow to refresh the new page keeping the session value.
The variable value filter data from server connect at first and session value allow to keep the query after page refresh.
But as Brian says the next is best option: