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
Michele Kleinhomer 10Michele Kleinhomer 10 

Controller & custom object

I think I am making a very basic error but can't seem to figure it out.  I am trying to reference a custom object (Fee_Discount__c) but am getting an invalid type error.

public with sharing class FutureMeetings_CC {
    public List<Fee_Discount__c> fee{get;set;}
    public FutureMeetings_CC() {
        fee = new List<Fee_Discount__c>();
}
}
Michele Kleinhomer 10Michele Kleinhomer 10
It was a typo!  Ugh...
Leo10Leo10
Hi,
No need to write this  fee = new List<Fee_Discount__c>();  part again you can simply call fee,

Regards,
Ajay K DubediAjay K Dubedi
Hi Michele,
There is no any error in this Controller.I think you are getting Error from your Visualforce code. Please double check your Visualforce Code.

Regards,
Ajay