IdeaStandardSetController Class

IdeaStandardSetController objects offer Ideas-specific functionality in addition to what is provided by the StandardSetController.

ApexPages

The IdeaStandardSetController and IdeaStandardController classes are currently available through a limited release program. For information on enabling these classes for your organization, contact your Salesforce representative.

In addition to the method listed above, the IdeaStandardSetController class inherits the methods associated with the StandardSetController.

The methods inherited from the StandardSetController cannot be used to affect the list of ideas returned by the getIdeaList method.

An IdeaStandardSetController object cannot be instantiated. An instance can be obtained through a constructor of a custom extension controller when using the standard list controller for ideas.

The following example shows how an IdeaStandardSetController object can be used in the constructor for a custom list controller:

The following Visualforce markup shows how the IdeaStandardSetController example shown above and the <ideas:profileListOutputLink> component can display a profile page that lists the recent replies, submitted ideas, and votes associated with a user. Because this example does not identify a specific user ID, the page automatically shows the profile page for the current logged in user. This page must be named profilePage in order for this example to work:

In the previous example, the <ideas:detailoutputlink> component links to the following Visualforce markup that displays the detail page for a specific idea. This page must be named viewPage in order for this example to work:

The following example shows how an IdeaStandardSetController object can be used in the constructor for a custom list controller:

You must have created at least one idea for this example to return any ideas.

The following Visualforce markup shows how the IdeaStandardSetController example shown above can be used with the <ideas:listOutputLink> component to display a list of recent, top, and most popular ideas and comments. This page must be named listPage in order for this example to work:

In the previous example, the <ideas:detailoutputlink> component links to the following Visualforce markup that displays the detail page for a specific idea. This page must be named viewPage.

See Also

The following are instance methods for IdeaStandardSetController.

  • getIdeaList()

    Returns the list of read-only ideas in the current page set.

Returns the list of read-only ideas in the current page set.

public Idea[] getIdeaList()

Type: Idea[]

You can use the <ideas:listOutputLink>, <ideas:profileListOutputLink>, and <ideas:detailOutputLink> components to display profile pages as well as idea list and detail pages (see the examples below). The following is a list of properties returned by this method:

  • Body
  • Categories
  • Category
  • CreatedBy.CommunityNickname
  • CreatedBy.Id
  • CreatedDate
  • Id
  • LastCommentDate
  • LastComment.Id
  • LastComment.CommentBody
  • LastComment.CreatedBy.CommunityNickname
  • LastComment.CreatedBy.Id
  • NumComments
  • Status
  • Title
  • VoteTotal