You need to sign in to do that
Don't have an account?
BoSoxFan
Visual Force controller for OpportunityLineItem?
Is there a standard controller for OpportunityLineItems? I'm able to set it in the page header howerver I get an "Unable to access page" when trying to access this page with a valid OpportunityLineItem Id.
<apex: page standardController="OpportunityLineItem">
<apex: pageBlock title="Hello {!$User.FirstName}!">
</apex: pageBlock>
<apex: detail/>
</apex: page>
<apex: page standardController="OpportunityLineItem">
<apex: pageBlock title="Hello {!$User.FirstName}!">
</apex: pageBlock>
<apex: detail/>
</apex: page>
it's as good as having a standard controller on that object.
Regards,
What I can say about PricebookEntry is that there is no related list that uses that entity directly and nor is it layoutable which is the requirement for use with apex:detail.
PricebookEntry is a very limited, specific standard object. It is important to understand it's place with OpportunityLineItem. I recommend checking out one of the schema browsing tools like eclipse or soqlxplorer to understand the data model here. There is also an ERD in the api documentation if memory serves.