• ksalesforce
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies

The eblow code does not display the data. What could be the problem?

 

VF Page

 

<apex:page standardController="opportunity" extensions="wbsextension">
<apex:form >
<apex:pageBlock title="WBS Element">

<apex:pageBlockSection title="WBS Element Details" columns="3">

<apex:pageBlockTable value="{!obj1}" var="a" cellpadding="10" rules="all" styleclass="pageblock" >>
<apex:column value="{!a.pse__Opportunity__r.Opportunity_Number__c}"/>
<apex:column value="{!a.pse__Project_Manager__c}"/>
<apex:column value="{!a.pse__Start_Date__c}"/>

</apex:pageBlockTable>
</apex:pageBlocksection>


<apex:pageBlockButtons >
<apex:commandButton action="{!save}" value="Save"/>
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:form>
</apex:page>

 

Extension:

 

public class wbsextension {

public wbsextension(ApexPages.StandardController controller) {


}


public pse__Proj__c[] getobj1(){

 

return [SELECT pse__Opportunity__r.id,pse__Opportunity__r.Opportunity_Number__c,pse__Project_Manager__c,pse__Start_Date__c FROM pse__Proj__c WHERE pse__Opportunity__r.id='vp006c0000008iP'];

 

}
}

The eblow code does not display the data. What could be the problem?

 

VF Page

 

<apex:page standardController="opportunity" extensions="wbsextension">
<apex:form >
<apex:pageBlock title="WBS Element">

<apex:pageBlockSection title="WBS Element Details" columns="3">

<apex:pageBlockTable value="{!obj1}" var="a" cellpadding="10" rules="all" styleclass="pageblock" >>
<apex:column value="{!a.pse__Opportunity__r.Opportunity_Number__c}"/>
<apex:column value="{!a.pse__Project_Manager__c}"/>
<apex:column value="{!a.pse__Start_Date__c}"/>

</apex:pageBlockTable>
</apex:pageBlocksection>


<apex:pageBlockButtons >
<apex:commandButton action="{!save}" value="Save"/>
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:form>
</apex:page>

 

Extension:

 

public class wbsextension {

public wbsextension(ApexPages.StandardController controller) {


}


public pse__Proj__c[] getobj1(){

 

return [SELECT pse__Opportunity__r.id,pse__Opportunity__r.Opportunity_Number__c,pse__Project_Manager__c,pse__Start_Date__c FROM pse__Proj__c WHERE pse__Opportunity__r.id='vp006c0000008iP'];

 

}
}