Page 1 of 1

Retrieve data from previous page

Posted: Mon Jun 10, 2024 6:07 am
by kourosh

Hi
I have a temporary table and I want to use it as a default value in the permanent table by selecting each row in the list, so after selecting the row in list ,such that "add page" of permanent table is opened and its fields are filled with previous page item.
i use listOptionsRendered function and session variable but using the session is problematic because it registers the last row in list , also "add page" does not accept route or parameter in url .
What is the best practice to transfer between two pages, which the " add page " is target ?


Re: Retrieve data from previis page

Posted: Mon Jun 10, 2024 10:47 am
by arbei

Your description is a little ambiguous, you may want to elabarate, for example, the steps you click in the List page. How do you go from one Add page to the next?


Re: Retrieve data from previous page

Posted: Sat Jun 15, 2024 9:31 am
by vintoICT

Your question is not clear but I think this could help.
From page A find a way to add ur variable to the url .
On page A, linktopageB?var=<?$var?>
Then on page B use $_GET['var']


Re: Retrieve data from previous page

Posted: Mon Jun 24, 2024 3:46 am
by kourosh

hi again

as you know url parameter is accessible in add/copy server event and isn't accessible in common table event specially (Row_Inserting event) for manipulate $rsnew.
i want to make invisible field in add page and transfer its value (got it from url parameter) to Row_Insering event.
EditValue And CurrentValue doesn't work when field is invisible.
how can transfer value from add page to Row_Inserting event ?


Re: Retrieve data from previous page

Posted: Mon Jun 24, 2024 8:28 am
by mobhar

You may use a session variable to store the param you get from the URL in Add/Copy page, and then use that session variable in Row_Inserting server event.