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
Jerry.ax1540Jerry.ax1540 

getting the row index from the Page Block table

Hi 

 

how can we get the index of the selected row from the page Block table to the apex class ,

APathakAPathak

On click java script can be used to populate the record id into a hidden field on page 

OR

Wrapper class can be used with a boolean column.

Jerry.ax1540Jerry.ax1540

 I am inserting the record  so  i dont have record id and wrapper class makes my code complex so i need to know the row index of the focussed column.

 

Jerry.ax1540Jerry.ax1540

is there any way from java script to find the row index of the pageblockTable ?? 

Axaykumar VaruAxaykumar Varu

 

Hi Jerry,

check This link,might be helps you..

http://blog.jeffdouglas.com/2010/04/02/visualforce-row-counter-for-iteration-components/

 

 

Thanks,

Akshay kumar