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
udayarangareddy mekalaudayarangareddy mekala 

PASSING RECORDS

Hi,
     How to pass the RECORDS from  ONE PAGE to ANOTHER PAGE.please tell me as early as possible.



                                    THANKS&REGARDS
                                    RANGA
 
Best Answer chosen by udayarangareddy mekala
hitesh90hitesh90
Hello Uday,

You have to use same controller in both of pages. and set the setRedirect value to false when you are going from one page to another page.
see below example:
 
public PageReference redirectToSecondPage(){
	PageReference pageRef = new PageReference('/apex/VFPage2');
	pageRef.setRedirect(false);
	return pageRef;  
}

Thank You,
Hitesh Patel
Email :- hiteshpatel.aspl@gmail.com
http://mrjavascript.blogspot.in/

All Answers

hitesh90hitesh90
Hello Uday,

You have to use same controller in both of pages. and set the setRedirect value to false when you are going from one page to another page.
see below example:
 
public PageReference redirectToSecondPage(){
	PageReference pageRef = new PageReference('/apex/VFPage2');
	pageRef.setRedirect(false);
	return pageRef;  
}

Thank You,
Hitesh Patel
Email :- hiteshpatel.aspl@gmail.com
http://mrjavascript.blogspot.in/
This was selected as the best answer
udayarangareddy mekalaudayarangareddy mekala
Thanks Patel
udayarangareddy mekalaudayarangareddy mekala
Your code is right for Pagenavigation,but i want passing the records from one page to another page while navigating please send me the code ie oneline code.
  Thanks
Ranga