1

I need to get Account records on two table format in same visualforce Eg: first table is disply 10 account records list and second table is display after 10 to 20 records list in same visualforce page (display the second table record list also first table below)

1
  • can you share your code what you have done so far. Commented Aug 8, 2016 at 8:46

1 Answer 1

1

You need to use OFFSET to display query result.

If you have only two table then you can create two queries to display records.

List<Account> accountList1 = [Select Id, Name from Account limit 10 ORDER By CreatedDate]; // This will display first 10 records

List<Account> accountList2 = [Select Id, Name from Account limit 10 OFFSET 10 ORDER By CreatedDate]; // This will display records from 10 to 20

Then you can bind these list to VF page to dislpay 2 tables.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .