+ Start a Discussion
keertikeerti 

Unabe to display field values in page block

hi, using this value i m unable to display field values in page block.

<apex:page standardController="Position__c" id="thePage">
<apex:form >
<apex:pageBlock >
<apex:pageMessages ></apex:pageMessages>
<apex:pageBlockButtons location="bottom">
<apex:commandButton action="{!save}" value="Save"/>
<apex:commandButton action="{!cancel}" value="Cancel"/>
</apex:pageBlockButtons>
<apex:pageBlockSection columns="1">
<apex:inputField value="{!Position__c.Department__c}"/>
<apex:inputField value="{!Position__c.Job_Description__c}"/>
</apex:pageBlockSection>
</apex:pageBlock>
<apex:pageBlock>
<apex:pageBlockTable value="{!Position__c.Job_Applications__r}" var="JA">
<apex:column headerValue="Candidate">
<apex:outputLink value="{!URLFOR($Action.Candidate__c.View,JA.Candidate__r.ID)}">{!JA.Candidate__r.First_Name__c} {!JA.Candidate__r.Last_Name__c}</apex:outputLink>
</apex:column>
<apex:column value="{!JA.Candidate_Qualified__c}"/>
</apex:pageblockTable>
</apex:pageBlock>
</apex:form>
</apex:page>

It is not showing any error but also not showing values.

Imran MohammedImran Mohammed

I hope you have overriden the View of the Position__c object with  the VF page you have created.

Also, in the pageblock tag, have the mode as edit

<apex:pageblock mode="edit">

 

Let me know if you still face the issue.

keertikeerti

Hi,

i have changed the mode as edit and yes , I have overridden the View of the Position__c object with  the VF page.

Because of that i m unable to fetch the records.

still i m unable to fetch them

ngabraningabrani

Keerti,

You will need to pass the position id to the page. This will inform Visualforce about which record you are working with. In the URL add ?id=recordNoOfPositionRecord

You will need to give the specific record number of position custom object to id request parameter.

Imran MohammedImran Mohammed

Yes, that should resolve the issue.

Thanks for pointing that.

 

keertikeerti

hi,

i dont want to fetch data for a particular position.

i want to fetch data for all positions.

ngabraningabrani
Imran MohammedImran Mohammed

I really dont understand your point here.

What does View on an object means is that you can see the details of a particular record using Standard functionality or overriding with custom functionality?

 

Do you want all the positions data to be shown in the inputField?

keertikeerti

hi, i have designed a page with view overridden and i want to display data of position object  in a column on my custom page

keertikeerti

Hi,

i have designed a custom page with view overridden and I want to display data(field values) of position object in a column of that page