You need to sign in to do that
Don't have an account?
Alexht
Error with account name with person accounts enabled
<apex:page standardController="Quote__c" tabStyle="Opportunity" > <apex:form > <apex:pageBlock title="Quote Edit" tabStyle="Opportunity"> <apex:pageBlockSection title="test" showHeader="false"> <apex:pageBlockSectionItem> <apex:outputLabel>Account Name</apex:outputLabel> <apex:outputField value="{!Quote__c.Opportunity__r.Account}"/> </apex:pageBlockSectionItem> </apex:pageBlockSection> </apex:pageBlock> </apex:form> </apex:page>
This visualforce page is overriding a New button. My org uses person account. Quote__c is the child of a master-child relationship with opportunity. When I click the new button from opportunity, I get this error message.
Validation Errors While Saving Record(s) |
There were custom validation error(s) encountered while saving the affected record(s). The first validation error encountered was "Account ID: value not of required type: core.apexpages.el.adapters.metadata.SObjectMetadataELAdapter@b473136". Click here to return to the previous page. |
Hi Alexht,
U want to display account name in Override Vf Page?
If so u can use Query String Parameters . For passing Account name in ur page.
Let me know in case of any issues.
Thank you,
I went with this code to extract the id from the url. Now I can override the standand new object and still get the opportunity object.