You need to sign in to do that
Don't have an account?
YWAMRTOadmin
Querying certain fields (Sections) And Related Lists
Hi, I wanted to know how I can query a section of a contact page, and a related list of that contact and put it as a tab.
So my users can click the tab, and it brings up a contact look up field, with other fields from the contact, as well as a related list.
With Visual Force you can.
<apex:page standardController="Contact"> <apex:pageBlock> <apex:pageBlockTable value="{!MyCustomObject__r}" var="cust"> <apex:column value="{!cust.Name}" /> </apex:pageBlock> </apex:page>
This is how you would iterate a related list of an object that has a reference to a Contact. You can modify this page to include a lookup to a contact and refresh the list on change of this lookup. You can also call this page with a valid contact Id.
All Answers
With Visual Force you can.
<apex:page standardController="Contact"> <apex:pageBlock> <apex:pageBlockTable value="{!MyCustomObject__r}" var="cust"> <apex:column value="{!cust.Name}" /> </apex:pageBlock> </apex:page>
This is how you would iterate a related list of an object that has a reference to a Contact. You can modify this page to include a lookup to a contact and refresh the list on change of this lookup. You can also call this page with a valid contact Id.
That sounds exactly like I want!
How would I add the contact lookup/refresh to the page?
Also, I've been trying to query a related list, and no columns are showing up. Not even a {!(var).Name