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
Divya Gupta 11Divya Gupta 11 

Click on a row

Hi,

I have records with column header Name, Date and Payment under pageblocktable section. I've another pageblocktable section below the former. Now what I need is when I click the row I can fetch the details of the that row, like values of name,date,etc. In the long run, that another page table will be use ro show records of the related list related to that record. But right now my concern is how to revtrieve values. Please help, it's an urgent case on which I'm working right now.
Tarun_KhandelwalTarun_Khandelwal
Hi Divya,

Apply onclick event on column header, which calls action Function. Pass one parameter which is unique for each column header and you will get this parameter in apex controller. Now, you come to know which field is clicked. Query that field accrodingly.

Let me know in case of any question.