• Anupama Pandey
  • NEWBIE
  • 10 Points
  • Member since 2014
  • Salesforce Developer/ Admin

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies
I am trying to display the list of custom object sample__c having lookup relationship with Account using standerd controller (Account) . I am unable to pull them up. i also wrote extension to pull the related samples
<apex:page standardController="Account" extensions="QuickyExtensionController"> 
   <style>
   .activeTab {background-color: lightblue; color:white; 
         background-image:none}
   .inactiveTab { background-color: lightgrey; color:black; 
         background-image:none}
   </style>
    <apex:pageBlock title="Hello {!$User.FirstName}!" > 
        <p>You are viewing the {!account.name} account.</p>
            <apex:tabPanel activeTabClass="activeTab" inactiveTabClass="inactiveTab">
                <apex:tab disabled="false" label="Quicky"> 
                   <apex:relatedList  list ="quickyList" >
                  </apex:tab> 
            </apex:tabPanel>
    </apex:pageBlock> 
</apex:page>

My controller code goes here  

public class QuickyExtensionController {
  List<Account> quickyList { get; set;} 
    public QuickyExtensionController(ApexPages.StandardController controller) {
              //populate the list on page load 
            quickyList = [Select Quicky__c from Account where Id = : ApexPages.currentPage().getParameters().get('id')];
}

}

Error I received is 

Visualforce Error
Help for this Page

'quickyList' is not a valid child relationship name for entity Account
Quicky has lookup relationship to Account -  Please advice, If I am missing anything ! much appreciated
I am trying to create an email alert but i could not locate 'Task' in available object drop down list.


Please advise.User-added image
I am trying to display the list of custom object sample__c having lookup relationship with Account using standerd controller (Account) . I am unable to pull them up. i also wrote extension to pull the related samples
<apex:page standardController="Account" extensions="QuickyExtensionController"> 
   <style>
   .activeTab {background-color: lightblue; color:white; 
         background-image:none}
   .inactiveTab { background-color: lightgrey; color:black; 
         background-image:none}
   </style>
    <apex:pageBlock title="Hello {!$User.FirstName}!" > 
        <p>You are viewing the {!account.name} account.</p>
            <apex:tabPanel activeTabClass="activeTab" inactiveTabClass="inactiveTab">
                <apex:tab disabled="false" label="Quicky"> 
                   <apex:relatedList  list ="quickyList" >
                  </apex:tab> 
            </apex:tabPanel>
    </apex:pageBlock> 
</apex:page>

My controller code goes here  

public class QuickyExtensionController {
  List<Account> quickyList { get; set;} 
    public QuickyExtensionController(ApexPages.StandardController controller) {
              //populate the list on page load 
            quickyList = [Select Quicky__c from Account where Id = : ApexPages.currentPage().getParameters().get('id')];
}

}

Error I received is 

Visualforce Error
Help for this Page

'quickyList' is not a valid child relationship name for entity Account
Quicky has lookup relationship to Account -  Please advice, If I am missing anything ! much appreciated