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
kumar_arunkumar_arun 

How to get account Record based on rating(field of account) checkbox.

Hi,All
How to Show account details based on it's rating (HOT,COLD,WARM) that is checkbox.
Rupali PophaliyaRupali Pophaliya
Rating is a picklist field and you can query Account details like  this: 
 
SELECT Id, Name, Rating FROM Account where Rating = 'Cold'

 
kumar_arunkumar_arun
Thanks !!! for reply
But, i need to create a visualforce page that have rating in the form of cheackbox, when i checked HOT then All the account with Rating HOT is dispalyed on the Page.
Kiruthigha Rajasekaran 10Kiruthigha Rajasekaran 10
Hi Arun,
If you are using remoteobjects in Visual Force, this will help.
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_remote_objects_using_retrieve.htm