I have a custom setting with one profile assigned to it and that's Heathrow portal. It has a field called Largest Number and a value assigned to it. I need to display that number on a visualforce page using apex class. My method doesn't seem to be working.
On the top of the visualforce page I assigned the page to the custom setting
**<apex:page sidebar="false" standardStylesheets="false" controller="GenerateNumber" showHeader="false" title="Contact us">
and that seems to be fine but when I try to write a method that just returns the number it's failing and giving me a lot of errors.
public class GenerateNumber {
public String numbersgenerated {get;set;}
public String userinput {get;set;}
public GenerateNumber(){}
public PageReference getNumbers() {
return [SELECT Largest_Number__c FROM Number_Setting__c];
}
PageReference
? this should belist<Number_Setting__c>
<apex:repeat
to iterate over this list..