You need to sign in to do that
Don't have an account?
nellymnj
Error in VisualForce page- person account custom field problem
Hello.
I've build a VisualForce page based on custom controller. Custom controller has 2 public getter method; both methods return list of accounts: Lapsed Members and Inactive Members. Account is set up as person account and I want to show 2 contact custom field on a page: Membership_Type__pc and Membership_Status__pc.
Here is the page code:
<apex:page controller="ResetMember" tabStyle="Account">
<apex:pageBlock title="Accounts with incorrect membership status">
<apex:pageBlockTable value="{!lpsAccounts}" var="item">
<apex:facet name="header">Lapsed Accounts</apex:facet>
<apex:column value="{!item.name}"></apex:column>
<!--<apex:column value="{!item.Membership_Type__pc}"></apex:column>-->
<apex:column headerValue="Membership Status">
<apex:outputText>Active Member</apex:outputText>
</apex:column>
</apex:pageBlockTable>
</apex:form>
</apex:pageBlock>
</apex:page>
<apex:pageBlock title="Accounts with incorrect membership status">
<apex:pageBlockTable value="{!lpsAccounts}" var="item">
<apex:facet name="header">Lapsed Accounts</apex:facet>
<apex:column value="{!item.name}"></apex:column>
<!--<apex:column value="{!item.Membership_Type__pc}"></apex:column>-->
<apex:column headerValue="Membership Status">
<apex:outputText>Active Member</apex:outputText>
</apex:column>
</apex:pageBlockTable>
</apex:form>
</apex:pageBlock>
</apex:page>
As soon as i uncomment the line:
<!--<apex:column value="{!item.Membership_Type__pc}"></apex:column>-->
the page displays an error:
Invalid field Membership_Type__c for SObject Account
Is there a known problem with person account custom field in VisualForce or I am doing somthing wrong?
Is there a known problem with person account custom field in VisualForce or I am doing somthing wrong?
Thank you very much for any input
Thank you Doug, but no, this did not - still getting the same error:
Invalid field Membership_Type__c for SObject Account
Message Edited by dchasman on 06-27-2008 12:58 PM
Hi Doug - are custom person account fields in Sites still a problem? I have tried to put a custom person account field on a Visualforce page (eg. Preferred_Contact_Method__pc). In standard salesforce.com I can see and interact with this field no problem on the VF page. In Sites however, the custom person account field isn't displayed (for existing data) or isn't editable for new data.
Is it worth raising a case for this?
Thanks,
Stephen