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
tsalbtsalb 

Syntax for if all records are selected from list?

For a multi select list view JS button, I have some record length conditonals (records[0] == null or records [1] != null).

 

Is there an easy syntax for all records? If "all records are selected from the multi select list"...

 

I googled around, I think what I need is a way to determine the max # of IDs in the record array, and if the # recordIDs I select from that equals, then I know i've selected all the records.

CTISJH1CTISJH1

The Size() method should help you out.

 

 

 

 

 

integer size = yourList.Size();

 

This would return the amount of items in the your list.

 

Regards,

 

Jim Hutcherson