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
Roopa S 1Roopa S 1 

hii i need to write aura component plz someone help

i need to display account details using aura component and i should display only 10 records in one page and i should have 2 buttons that is PREVIOUS PAGE and NEXT PAGE to switch between previous page and next page.How to do this??
SwethaSwetha (Salesforce Developers) 
HI Roopa,

You will need to go with the pagination approach.Use the code posted on https://www.mstsolutions.com/technical/pagination-using-lightning-components/ to get started.

Also see related:
https://salesforce.stackexchange.com/questions/146896/how-to-add-the-functionality-of-previous-and-next-button-using-to-display-single
https://developer.salesforce.com/forums/?id=9062I000000Qw7OQAS
https://trailhead.salesforce.com/en/trailblazer-community/feed/0D54S00000A7m7ZSAR

Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful. Thank you
AnkaiahAnkaiah (Salesforce Developers) 
Hi Roopa,

Please refer the below article will help you to proceed further on your requirement.

https://www.biswajeetsamal.com/blog/pagination-in-lightning-component/

If this helps, please mark it as best answer.

Regards,
Ankaiah Bandi
 
mukesh guptamukesh gupta
Hi Roopa,

Best solution for your requirment:-

https://vkambham.blogspot.com/2020/02/lwc-paginator.html

if you need any assistanse, Please let me know!!

Kindly mark my solution as the best answer if it helps you.

Thanks
Mukesh