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
sumit dsumit d 

field history tracking visualforce

<apex:component controller="GenericHistoryComponentController">
 <apex:attribute name="myObject" description="Object we wish to view the history of" type="SObject" required="true" assignTo="{!myObject}" />
<apex:attribute name="recordLimit" description="Number of lines of history to display" type="Integer" required="false" assignTo="{!recordLimit}" />

 <apex:pageBlock title="{!objectLabel} History">
<apex:pageBlockTable value="{!ObjectHistory}" var="History" >
<apex:column headerValue="Date" value="{!History.thedate}"/>
<apex:column headerValue="User">
<apex:outputLink value="/{!History.userId}"> {!History.who} </apex:outputLink>
<apex:column headerValue="Action"><apex:outputText escape="false" value="{!History.action}"/></apex:column>
its showing me this error:-<apex:page> is required and must be the outermost tag in the markup at line 1 column 1
how to solve this?
Hi Sumit,
Please follow this link:
Create the component in visual force component section and access it from the visual force page. I hope this helps you.