function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
deepthi.t05deepthi.t05 

Remembering entered data when navigating through visual force pages

Hi,

 

I have a requirement where I have to navigate to Visual force pages i.e. from page 1 to 2 on button click.

 

On the second page I have command link where it gets me back to the previous page

 

now when I filter the data and click on command button and again get back the to original page the by clicking command link I want the data to remembered on 1 st page 

 

Thank You,

Anju Chacko QBAnju Chacko QB

Are you using same controller for both pages? 

deepthi.t05deepthi.t05
no 2 different controller and 2 different pages
Anju Chacko QBAnju Chacko QB

try using same controller for both pages, so that it will hold the values while navigating.

deepthi.t05deepthi.t05
cannot use the same controller ,
I need the functionality of back button with pre populating the old values
georggeorg

Either use same controller in both the pages or try implementing flows in salesforce which already has prev and next button prebuilt on it

 

Thanks,

George

Visit my blog here

deepthi.t05deepthi.t05
is it not possible in any other way