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
GhanashyamGhanashyam 

Cases COUNT in VisualForce

Hi,
I am trying to access the COUNT of the number of 'cases' using a 'script' in a Visualforce page. Is there any function to achieve this? Many thanks.
 
 
Ghanashyam
dchasmandchasman
You will need to create either a custom controller or a controller extension and use SOQL's count() functionality. Inlined SOQL is not supported in VF markup and there are no plans to add support for it at this time.
GhanashyamGhanashyam
Thanks for that Doug