You need to sign in to do that
Don't have an account?
Melissa Driscoll 14
Error: Unknown property 'String.Name'
im getting unknonw peropert string.name
<apex:page StandardController="Handoff__c">
<Head>
<apex:form >
<apex:pageBlock title="Opportunity Product">
<apex:pageBlockSection title="Opportunity Product Detail">
<apex:outputField value="{!Handoff__c.Opportunity__r.Name}" />
<apex:repeat value="{!Handoff__c.Opportunity__r.OpportunityLineItems}" var="c">
<td> {!c.PricebookEntry.Product2Id.Name} </td>
<td> {!c.Quantity} </td>
</apex:repeat>
</apex:pageBlockSection>
</apex:pageblock>
</apex:form>
</head>
</apex:page>
<apex:page StandardController="Handoff__c">
<Head>
<apex:form >
<apex:pageBlock title="Opportunity Product">
<apex:pageBlockSection title="Opportunity Product Detail">
<apex:outputField value="{!Handoff__c.Opportunity__r.Name}" />
<apex:repeat value="{!Handoff__c.Opportunity__r.OpportunityLineItems}" var="c">
<td> {!c.PricebookEntry.Product2Id.Name} </td>
<td> {!c.Quantity} </td>
</apex:repeat>
</apex:pageBlockSection>
</apex:pageblock>
</apex:form>
</head>
</apex:page>
Can you also include your controller code?
See similar posts:
https://salesforce.stackexchange.com/questions/8318/unknown-property-string-plancount-visual-force
https://developer.salesforce.com/forums/?id=906F0000000g1myIAA
https://stackoverflow.com/questions/35177469/salesforce-unknown-property-string-name
Thanks