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
Rahul GawadeRahul Gawade 

how to pass the value of clicked item on page table from one page to other page?

AshlekhAshlekh
Hi,

You can send the value by below apporaches

1) Send the value in parameter, so you second page get the value from parameter.

2) If your both pages have same controller means it is a wizard then you can redirect the user from your apex function, before redirecting user save the value in any property so you can use this property in your second page as both pages have same controller. For more detail read about wizard in salesforce.

3) You can save the value in any place like cookies or any custom setting before redirecting user and after redirect you can clear the value from place.

 
Rahul GawadeRahul Gawade
Both the pages are using different controllers, and i have four columns in my page block table i want to pass the value of first three columns of the clicked row when i click on the fourth details column.