Created
December 18, 2016 17:53
Visualforce - Beyond Basics
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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