+ Start a Discussion

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.


The Size() method should help you out.






integer size = yourList.Size();


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




Jim Hutcherson