You need to sign in to do that
Don't have an account?
sowmya thotthadi
Could not resolve the entity from <apex:inputField> value binding '{!contactRecord.Contact_ReportIssue__c}'. <apex:inputField> can only be used with SObjects, or objects that are Visualforce field component resolvable
<apex:form >
<apex:pageBlock mode="edit" >
<apex:pageBlockButtons location="bottom">
<apex:commandButton value="Save" action="{!SaveMethod}"/>
<apex:commandButton value="Cancel" action="{!CancelMethod}"/>
</apex:pageBlockButtons>
<apex:pageBlockSection >
<apex:pageBlockSectionItem >
<apex:outputLabel value="Subject"/>
<!-- <apex:outputField value="{!contactRecord.Subject__c}"/> -->
</apex:pageBlockSectionItem> <br/>
<apex:pageBlockSectionItem >
<apex:outputLabel value="Description"/>
<!-- <apex:outputField value="{!contactRecord.Description}"/> -->
</apex:pageBlockSectionItem> <br/>
<apex:pageBlockSectionItem >
<apex:outputLabel value="Contact Name"/>
<apex:inputField value="{!contactRecord.Contact_ReportIssue__c}"/>
</apex:pageBlockSectionItem><br/>
<apex:pageBlockSectionItem >
<apex:outputLabel value="Email"/>
<!-- <apex:outputField value="{!contactRecord.Email}"/> -->
</apex:pageBlockSectionItem>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
// controller
public class reportIssueRaised {
public set<Contact> contactRecord {get; set;}
public reportIssueRaised()
{
contactRecord = new set<Contact>([select id,Subject__c,Contact_ReportIssue__c,Description,Email from Contact]);
}
public PageReference CancelMethod() {
return null;
}
public PageReference SaveMethod() {
return null;
}
}
<apex:pageBlock mode="edit" >
<apex:pageBlockButtons location="bottom">
<apex:commandButton value="Save" action="{!SaveMethod}"/>
<apex:commandButton value="Cancel" action="{!CancelMethod}"/>
</apex:pageBlockButtons>
<apex:pageBlockSection >
<apex:pageBlockSectionItem >
<apex:outputLabel value="Subject"/>
<!-- <apex:outputField value="{!contactRecord.Subject__c}"/> -->
</apex:pageBlockSectionItem> <br/>
<apex:pageBlockSectionItem >
<apex:outputLabel value="Description"/>
<!-- <apex:outputField value="{!contactRecord.Description}"/> -->
</apex:pageBlockSectionItem> <br/>
<apex:pageBlockSectionItem >
<apex:outputLabel value="Contact Name"/>
<apex:inputField value="{!contactRecord.Contact_ReportIssue__c}"/>
</apex:pageBlockSectionItem><br/>
<apex:pageBlockSectionItem >
<apex:outputLabel value="Email"/>
<!-- <apex:outputField value="{!contactRecord.Email}"/> -->
</apex:pageBlockSectionItem>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
// controller
public class reportIssueRaised {
public set<Contact> contactRecord {get; set;}
public reportIssueRaised()
{
contactRecord = new set<Contact>([select id,Subject__c,Contact_ReportIssue__c,Description,Email from Contact]);
}
public PageReference CancelMethod() {
return null;
}
public PageReference SaveMethod() {
return null;
}
}
Something like: