Discussions
- General Development
- Schema Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules
- Security
- Mobile
- Force.com Sites & Site.com
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby
- Desktop Integration
- APIs and Integrations
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- AppExchange Directory & Packaging
- Salesforce Labs & Open Source Projects
- Other Salesforce Applications
- Jobs Board
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- Visualforce Development
- :
- How do I get the History for a Custom Object on to...
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
How do I get the History for a Custom Object on to a Cutom VF page?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-14-2012 11:43 AM
I created a tabbed VF page for a custom object to replace the standard layout that we had. I used this piece of code to call all the related lists I needed.
<apex:tab label="History" name="History" id="tabHistory">
<apex:relatedList subject="{!Clients__c}" list="OpenActivities"/>
</apex:tab>
The trouble I'm having is I don't know (nor ca I guess) the correct name for the standard History Object that appears in every page. Can anyone tell me what I should be putting in the list part of the code?
Thanks in advance.
Solved! Go to Solution.
Re: How do I get the History for a Custom Object on to a Cutom VF page?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-14-2012 12:33 PM
This information can be located in your enterpise WSDL file.
The history object will be different for each object. As an example, this is the section for leads from an enterpise WSDL file:
<complexType name="LeadHistory">
<complexContent>
<extension base="ens:sObject">
<sequence>
<element name="CreatedBy" nillable="true" minOccurs="0" type="ens:Name"/>
<element name="CreatedById" nillable="true" minOccurs="0" type="tns:ID"/>
<element name="CreatedDate" nillable="true" minOccurs="0" type="xsd:dateTime"/>
<element name="Field" nillable="true" minOccurs="0" type="xsd:string"/>
<element name="IsDeleted" nillable="true" minOccurs="0" type="xsd:boolean"/>
<element name="Lead" nillable="true" minOccurs="0" type="ens:Lead"/>
<element name="LeadId" nillable="true" minOccurs="0" type="tns:ID"/>
<element name="NewValue" nillable="true" minOccurs="0" type="xsd:anyType"/>
<element name="OldValue" nillable="true" minOccurs="0" type="xsd:anyType"/>
</sequence>
</extension>
</complexContent>
</complexType>
Salesforce.com Certified Advanced Administrator
http://www.forcedisturbances.com/
Re: How do I get the History for a Custom Object on to a Cutom VF page?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-14-2012 12:39 PM
What is my enterpise WSDL file and where do I find it?
Re: How do I get the History for a Custom Object on to a Cutom VF page?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-14-2012 12:59 PM
WSDL = Web Service Definition Language
This is an XML file that describes your system. The enterprise one is strongly typed while the partner one is more generic.
Here is a link on generating the WSDL.
Salesforce.com Certified Advanced Administrator
http://www.forcedisturbances.com/
Re: How do I get the History for a Custom Object on to a Cutom VF page?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-14-2012 01:01 PM
You may find this thread useful as well.
Salesforce.com Certified Advanced Administrator
http://www.forcedisturbances.com/
Re: How do I get the History for a Custom Object on to a Cutom VF page?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-14-2012 01:01 PM
Thanks
Re: How do I get the History for a Custom Object on to a Cutom VF page?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-14-2012 01:06 PM
Here is another person's blog post that might help too.
Salesforce.com Certified Advanced Administrator
http://www.forcedisturbances.com/

