You need to sign in to do that
Don't have an account?
Why am I getting the "Unknown property referenced error" in my Vf page
I'm getting the following error on my VF page apex
Error: Unknown property 'Solution__c' referenced in ProductEnhancements
Please help
This is the code:
<apex:page> standardController="Solution__c" sidebar="false">
<apex:form>
<apex:pageblock title="Product Details" id="ACPPageBlock" mode="edit">
<apex:pagemessages/>
<apex:pageBlockButtons>
<apex:commandButton value="Save" action="{!save}"/>
<apex:commandButton value="Cancel" action="{!cancel}"/>
</apex:pageBlockButtons>
<apex:actionRegion >
<apex:pageBlockSection title="Basic Opportunity Info" columns="1">
<apex:inputField value="{!Solution__c.CustomerID__c}"/>
<apex:pageBlockSectionItem >
<apex:outputLabel value="Product"/>
<apex:outputLabel >
<apex:inputField value="{!Solution__c.Product__c}">
<apex:actionSupport event="onchange" rerender=" ACPPageBlock" status="Product__c"/>
</apex:inputField>
<apex:actionStatus startText="applying value..." id="Product__c"/>
</apex:outputLabel>
</apex:pageBlockSectionItem>
</apex:pageBlockSection>
</apex:actionRegion>
<apex:pageBlockSection title="Ratings and Reviews" columns="1" rendered="{!Solution__c.Product__c == 'UGC-R&R'}">
<apex:inputField value="{!Solution__c.Sorting_Functionality__c}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
<apex:page standardController="Solution__c" sidebar="false">
<apex:form>
<apex:pageblock title="Product Details" id="ACPPageBlock" mode="edit">
<apex:pagemessages/>
<apex:pageBlockButtons>
<apex:commandButton value="Save" action="{!save}"/>
<apex:commandButton value="Cancel" action="{!cancel}"/>
</apex:pageBlockButtons>
<apex:actionRegion >
<apex:pageBlockSection title="Basic Opportunity Info" columns="1">
<apex:inputField value="{!Solution__c.CustomerID__c}"/>
<apex:pageBlockSectionItem >
<apex:outputLabel value="Product"/>
<apex:outputLabel >
<apex:inputField value="{!Solution__c.Product__c}">
<apex:actionSupport event="onchange" rerender=" ACPPageBlock" status="Product__c"/>
</apex:inputField>
<apex:actionStatus startText="applying value..." id="Product__c"/>
</apex:outputLabel>
</apex:pageBlockSectionItem>
</apex:pageBlockSection>
</apex:actionRegion>
<apex:pageBlockSection title="Ratings and Reviews" columns="1" rendered="{!Solution__c.Product__c == 'UGC-R&R'}">
<apex:inputField value="{!Solution__c.Sorting_Functionality__c}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
All Answers
Try this
Hi Raj,
I'm using a custom object with the API name Solution__c
Also, I'm the System Admin and I do have access to the object
<apex:page standardController="Solution__c" sidebar="false">
<apex:form>
<apex:pageblock title="Product Details" id="ACPPageBlock" mode="edit">
<apex:pagemessages/>
<apex:pageBlockButtons>
<apex:commandButton value="Save" action="{!save}"/>
<apex:commandButton value="Cancel" action="{!cancel}"/>
</apex:pageBlockButtons>
<apex:actionRegion >
<apex:pageBlockSection title="Basic Opportunity Info" columns="1">
<apex:inputField value="{!Solution__c.CustomerID__c}"/>
<apex:pageBlockSectionItem >
<apex:outputLabel value="Product"/>
<apex:outputLabel >
<apex:inputField value="{!Solution__c.Product__c}">
<apex:actionSupport event="onchange" rerender=" ACPPageBlock" status="Product__c"/>
</apex:inputField>
<apex:actionStatus startText="applying value..." id="Product__c"/>
</apex:outputLabel>
</apex:pageBlockSectionItem>
</apex:pageBlockSection>
</apex:actionRegion>
<apex:pageBlockSection title="Ratings and Reviews" columns="1" rendered="{!Solution__c.Product__c == 'UGC-R&R'}">
<apex:inputField value="{!Solution__c.Sorting_Functionality__c}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>