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
Regular ContributorRegular Contributor 

!!! Urgent : Need help to access a Field value from a standard method getIdeaList()

Hi,

     I have a controller that gives the properties of Ideas object that is Body, categories, Id, etc.

I need to access the categories property for each Idea retrieved by the getIdeaList(); method so that i can have a different display  for ideas of some particular category.

I am able to control the display when i go by individual category.

I am unable to access that property retrived by the method.

I have copied the snippet of my code below: (both the page and the controller)

 

Visualforce Page:


<apex:dataList value="{!ideasWithVotes}" var="ideaWithVote" styleClass="ibtIdeaList ibtIdeaListPadding">
                            <c:ideaDetails idea="{!ideaWithVote.idea}" howUserVoted="{!ideaWithVote.howUserVoted}" returnUrl="  {!currentPageUrl}" />

</apex:dataList>

 

Controller:

 

public IdeaWithVote[ ] ideasWithVotes {
        get {
            if (ideasWithVotes == null) {
                ideasWithVotes = IdeaWithVote.getIdeasWithVotes(getIdeas());
            }
            return ideasWithVotes;
        }
        set;
    }
    
    public String[ ] cat {get;set;}
    
    public Idea[ ] getIdeas() {
        if (ideas == null) {
            if (controller != null) {
                ideas = controller.getIdeaList();
            }
        }    
        return ideas;
    }

 

Can anyone help me with this isuue.

 

Thanks in Advance

Best Answer chosen by Admin (Salesforce Developers) 
Regular ContributorRegular Contributor

Solved my issue. DId some changes in the visualforce page