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

Javascript - get all records from enhanced list

Not sure if this is the right forum - moderator please feel free to move.


I have a custom button on a list controller (enhanced) that executes javascript


accts = {!GETRECORDIDS($ObjectType.Account)};


This gets me all the ID's for the accounts that the user has selected.  Is there any way to access the entire recordset - ie even ones the user has not selected?


You can use @RemoteAction, sforce.apex.execute, or even an apex:repeat with some JavaScript code. There is no function directly comparible to GETRECORDIDS for enhanced lists, but there's a half-dozen other ways you can get this data.

Arun KArun K


I need a requirement which calculates no of records that are shown in enhancedlist(records are shown 50 out of 120) and according to that horizontalbar should be displayed.
If i remove records from enhancedlist, the horizontalbar should update


I want apex code for getting no of records that are displaying in enhancedlist so that i can it horizontal bar in visualforce page


Can I know to do this.??