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
sandeepathadusandeepathadu 

help for query string parameters

how to populate the values of one visual force page to another on a button click

SFDC_LearnerSFDC_Learner

We need to pass the Ids of those Records from current page to Next page.

 

 

Ankit AroraAnkit Arora

Just fetch all the values from one page and send it  to other page using URL.

 

Lets say I have a visualforcepage which take account name as  input from user and now I want this name to be sent to my next page then where I am redirecting to my next page I will send this name in URL like this :

 

https://....../apex/YourPageName?accName=Test

 

In next page controller I will fetch this value from URL using :

 

String tempStr = ApexPages.currentPage().getParameters().get('accName') ;

 

*Note : This approach is feasible if you don't have too much values to send in parameter because URL also have its own limit (length).

 

 

Thanks

Ankit Arora

Blog | Facebook | Blog Page