You need to sign in to do that
Don't have an account?
Btuitasi1
Extension: List based on page ID
I have a visualforce detail page that utilizes a link like:
https://org-developer-edition.na17.force.com/MyCommunity/Page_Detail?id=a00o0000007FxHjSSK
I am trying to construct a controller that would allow me to display a record from a custom object (Idea Comments) with a master-detail relationship to the standard controller object (Idea Lobby) based on the ID of the displayed record.
Here is my extension so far:
I only want the Idea Comment records with the master-detail relationship to the specific record to show up.
Thanks!!
https://org-developer-edition.na17.force.com/MyCommunity/Page_Detail?id=a00o0000007FxHjSSK
I am trying to construct a controller that would allow me to display a record from a custom object (Idea Comments) with a master-detail relationship to the standard controller object (Idea Lobby) based on the ID of the displayed record.
Here is my extension so far:
public with sharing class detExt { public detExt(ApexPages.StandardController acon) { } public List<Idea_Comments__c> getdetExt() { return [SELECT Id, CreatedDate, CreatedBy.Name, Comment__c FROM Idea_Comments__c WHERE Idea_Lobby__c = order by CreatedDate DESC ]; } }
I only want the Idea Comment records with the master-detail relationship to the specific record to show up.
Thanks!!
All Answers