You need to sign in to do that
Don't have an account?
Using Rich Text Field in customer controller
I have a controller with the following call:
public ProposalController() { opportunity = [ select o.AccountId, o.Account.BillingCity, o.Account.BillingState, o.Account.BillingStreet, o.Account.BillingPostalCode, o.Account.Industry, o.Account.Name, o.Contract_Date__c, o.HasOpportunityLineItem, o.Id, o.Pieces_per_Month__c, o.Agreement_Terms__c, (SELECT contact.name, contact.Title,contact.email FROM OpportunityContactRoles where isprimary = true), (SELECT PriceBookEntry.Name, PriceBookEntry.UnitPrice,PriceBookEntry.Product2.ContractSection__c FROM OpportunityLineItems) from opportunity o where id = :ApexPages.currentPage().getParameters().get('id')]; }
If I try to add a rich text field ot the query and save in Force.com ide:
public ProposalController()
{ opportunity = [ select o.AccountId, o.Account.BillingCity, o.Account.BillingState, o.Account.BillingStreet, o.Account.BillingPostalCode, o.Account.Industry, o.Account.Name, o.Contract_Date__c, o.HasOpportunityLineItem, o.Id, o.Pieces_per_Month__c, o.Agreement_TermsRTF__c, (SELECT contact.name, contact.Title,contact.email FROM OpportunityContactRoles where isprimary = true), (SELECT PriceBookEntry.Name, PriceBookEntry.UnitPrice,PriceBookEntry.Product2.ContractSection__c FROM OpportunityLineItems) from opportunity o where id = :ApexPages.currentPage().getParameters().get('id')]; }
for elipse I get the following error:
Save error: No such column 'Agreement_TermsRTF__c' on entity 'Opportunity'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.
I would like to have my visual force page show this field, but I can't get the controller to allow it yet. It also is not showing up in the salesforce.schema view for the Force IDE.