Skip to main content
added 6 characters in body
Source Link
user7533
  • 415
  • 1
  • 6
  • 14

I have a Visual force page that overrides the "Close Case button" on case details page.VF page uses case standardController.I want to populate CaseComment.commentbody field of the from this VF page. CaseComment is a Child object of Case.Sample code is as below

<apex:page standardController="Case"> apex:form <apex:inputField value="{!Case.Postback_Options__c}" /> <apex:inputField value="{!CaseComment.CommentBody}" label="Internal Comments" /> </apex:form> </apex:page><apex:page standardController="Case"> <apex:form> <apex:inputField value="{!Case.Postback_Options__c}" /> <apex:inputField value="{!CaseComment.CommentBody}" label="Internal Comments" /> </apex:form> </apex:page>

This throws an error Unknown property 'CaseStandardController.CaseComment'

Can Somebody please help me out.

I have a Visual force page that overrides the "Close Case button" on case details page.VF page uses case standardController.I want to populate CaseComment.commentbody field of the from this VF page. CaseComment is a Child object of Case.Sample code is as below

<apex:page standardController="Case"> apex:form <apex:inputField value="{!Case.Postback_Options__c}" /> <apex:inputField value="{!CaseComment.CommentBody}" label="Internal Comments" /> </apex:form> </apex:page>

This throws an error Unknown property 'CaseStandardController.CaseComment'

Can Somebody please help me out.

have a Visual force page that overrides the "Close Case button" on case details page.VF page uses case standardController.I want to populate CaseComment.commentbody field of the from this VF page. CaseComment is a Child object of Case.Sample code is as below

<apex:page standardController="Case"> <apex:form> <apex:inputField value="{!Case.Postback_Options__c}" /> <apex:inputField value="{!CaseComment.CommentBody}" label="Internal Comments" /> </apex:form> </apex:page>

This throws an error Unknown property 'CaseStandardController.CaseComment'

Can Somebody please help me out.

Source Link
user7533
  • 415
  • 1
  • 6
  • 14

How to polulate Child object field from a VF page standard controller of the Master Object

I have a Visual force page that overrides the "Close Case button" on case details page.VF page uses case standardController.I want to populate CaseComment.commentbody field of the from this VF page. CaseComment is a Child object of Case.Sample code is as below

<apex:page standardController="Case"> apex:form <apex:inputField value="{!Case.Postback_Options__c}" /> <apex:inputField value="{!CaseComment.CommentBody}" label="Internal Comments" /> </apex:form> </apex:page>

This throws an error Unknown property 'CaseStandardController.CaseComment'

Can Somebody please help me out.