Skip to content

Instantly share code, notes, and snippets.

@sankaran1984
Created December 18, 2016 17:53
Visualforce - Beyond Basics
public class testcls_18122016 {
public Integer oppCount {get; set;}
public testcls_18122016() {
// Do Nothing
}
public void getClosedOppCount() {
oppCount = (Integer) [Select
Count(Id)
From
Opportunity
Where
IsClosed = False][0].get('expr0');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment