You need to sign in to do that
Don't have an account?
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.
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.
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
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.
Yes, that should resolve the issue.
Thanks for pointing that.
hi,
i dont want to fetch data for a particular position.
i want to fetch data for all positions.
Keerti,
You need to use standard list controller -
http://www.salesforce.com/us/developer/docs/pages/Content/pages_controller_sosc_about.htm
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?
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
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