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
mromanimromani 

Create a new Controller Class

Hi,

 

I want to create a new class (controller) that is to be used by my VF page.

I clicked on Setup, then Develop, then Apex Classes, only problem is that there is no "New" button to allow me to create a new class....

 

Does anyone know why this is happening?

what can i do to fix this problem?

 

Thanks for the help!

 

mromani

shillyershillyer

What edition of Salesforce are you using? From the help...

 

You can add, edit, or delete Apex using the Salesforce.com user interface only in a Developer Edition organization, a Salesforce.com Enterprise Edition trial organization, or sandbox organization. In a Salesforce.com production organization, you can only make changes to Apex by using the Metadata API deploy call, the Force.com IDE, or the Force.com Migration Tool

 

Best,

Sati

Message Edited by shillyer on 12-28-2009 09:27 AM
mromanimromani
We've got the full Enterprise Edition....so i still dont quite understand why i cant create a new class...
shillyershillyer

So that falls under the Salesforce Production org, so you would need to develop the classes in your Sandbox org (or Developer Edition org) and then deploy to your Production org. This is to ensure sufficient code coverage is in place before going into production. This doc will walk you through both options.

 

There's numerous articles that discuss this in the Technical Library.

 

Best,

Sati

mromanimromani

Ahhh, ok, perfect, then i'll do it that way.

 

Thanks for the help!