I am new to Apex and trying to access the value from Custom Controller having SOQL query and show it on visualforce page as an Output link.
Visualforce snippet:
<div class="count"><apex:outputText value="{!Record}"/></div>
Apex Code Snippet:
public Integer getDisplayQueryList() {
Records = 0;
Records = [select count() from Case where Type like 'MDD Increase from WSC'];
return Records;
}
Also I have read about the AggregateResult[] which might be the best way to use but not sure how to use it properly. My main aim is to search & Count for all Cases which are NOT Closed & of Type = MDD Increase from WSC and then display that count in the visual force page.
Any Help would be much appreciated.