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
SFIBSSFIBS 

Creating a Wizard with Visualforce Pages

Hi all,

 

I'm going through the section on Creating a Wizard with Visualforce Pages in the Force.com Cookbook, and at the bottom of Page 35 it mentions that I have to create the newOpportunityController controller.

 

How do you do this? The instructions say that I should add it as an attribute to one of the pages that I've created, and clicking on Create Apex controller newOpportunityController  - but I don't see this function.

 

 

Can anyone provide some advice on this please?

 

 

Thanks!

 

 

orshorsh

2 options:

1. Add it as an attribute in the <apex:page> and save the page. Then you'll see a link to create the missing controller.

2. Create new apex class called "newOpportunityController" (setup-> develop-> apex classes-> new class).

 

Good Luck.