+ Start a Discussion
Kristy W.Kristy W. 

Is it possible to get the Ideas extended controllers enabled in a developer environment?

I'm playing with some Ideas development in a dev environment and from what the docs say I need the extended Ideas controllers enabled. How do I go about getting that done?
incuGuSincuGuS

What im using is this :

 

 

public class IdeaListController extends IdeaController {
    public Idea[] ideas;
    ApexPages.IdeaStandardSetController controller;
    
    public IdeaListController() {
    }

    public IdeaListController(ApexPages.IdeaStandardSetController controller) {
    	this.controller = controller;
    }

    public Idea[] getIdeas() {
	if (ideas == null) { 
	    	if (controller != null) {
	    		ideas = controller.getIdeaList();
	    	} 
	}
		return ideas;
    }
 
}

 

 

IdeasController is another class i use, but you can see here i use the standard one to get the ideas. this is just a snippet of the code, but hope this helps you out.

 

If you need to just extend it you can use the same syntax i used to extend my class

 

 

public class IdeaListController extends IdeaController {

 

 

But replace IdeaController with the standard class.

 

 

Hope this helps you out.

Gaston

Kristy W.Kristy W.
Actually I'm not trying to do any apex customizations yet. I will but right now I just want to build a vf page that lists the ideas using the ideas standard components and that can't be done without the Ideas extended standard controllers enabled.