I am started learning standard controller in visualforce. I have two custom object: Timesheet__c & Timeentries__c.I want to display the timeentries__c details in timesheet__c matching with Id.Can anyone help me to solve it.
Code
<apex:page standardController="Time_Entry__c">
<apex:form >
<apex:pageBlock >
<apex:pageBlockSection title="Time Entry Details">
<apex:inputField value="{! Time_Entry__c.User_Name__c}"/>
<apex:inputField value="{! Time_Entry__c.Start_Date_Time__c}"/>
<apex:inputField value="{! Time_Entry__c.End_Date_Time__c}"/>
</apex:pageBlockSection>
<apex:pageBlockButtons >
<apex:commandButton action="{!Save}" value="Save"/>
<apex:commandButton action="{!cancel}" value="Cancel"/>
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:form>
</apex:page>