+ Start a Discussion

How link visualforce page to records desplaying in another page

<apex:page standardController="Deliverables__c" recordSetVar="Deliverables" tabstyle="Deliverables__c" sidebar="false">
  <apex:pageBlock >
    <apex:form >
     <apex:dataTable value="{!Deliverables}" var="o" id="scoringTable" cellpadding="4" width="100%">
                        <apex:column >
                        <apex:facet name="header">Owner Id</apex:facet>
                           <apex:outputLink value="apex/delverydetails/!{o.id}">{!o.Name}</apex:outputLink>

Here i want display deliverabledetailpage ofter clicking on list of records.
devliverable is master object of deliverabledetails object....Pl help me write a controller
Amritesh SahuAmritesh Sahu

I hope this helps you.
<apex:dataTable value="{!Deliverables}" var="o" id="scoringTable" cellpadding="4" width="100%">
    <apex:column >
       <apex:facet name="header">Deliverables Name</apex:facet>
       <apex:outputLink value="/{!o.id}">{!o.Name}</apex:outputLink>
Replace your datatable with this one.
This code shows a list of Deliverables. The Deliverables Name links to the detailpage.

Thanks & Regards.

thanks Amritesh,

Lemme explane it properly

There are two objects 1.Deliverable(master) and DeliverableDetails(child of Deliverable)
I have created two VF pages 1. list of deliverables of (deleverable object)
2.Pdf(deliverableDetails ofject)

Now If i click on list of deliverable list  then i shold display  a deliverableDetailspage(child object Page)
Amritesh SahuAmritesh Sahu
Then you should pass the ID of the Deliverable Object to the "deliverableDetailspage". 
<apex:outputLink value="{!$Page.deliverableDetailspage}?id={!o.id}">{!o.Name}</apex:outputLink>
Put this in the first VF.
What u want to display in 2nd vf. Can u share the code of 2nd vf.

<apex:page standardController="Deliverables_Details__c" renderAs="pdf" applyBodyTag="false">

        <h1>Deliverable Details!</h1>
        <apex:panelGrid columns="1" width="100%">
        <h2> Deliverable Name </h2>
            <apex:outputText value="{!Deliverables_Details__c.Description__c}" />
             <h2> Description </h2>
             <apex:outputText value="{!Deliverables_Details__c.Description__c}"/>
            <apex:outputText value="{!NOW()}"></apex:outputText>
hi this is second page..

Deliverables__c"  is master of Deliverables_Details__c, May be i need to write controller to get a id of related child record,

Please give solution.

Thank you