How to read Rich Text fields in Salesforce?

Sample Code:

Visualforce page:

<apex:page showHeader="false" controller="Sample" >
<apex:form >
    <apex:pageBlock >
        <apex:pageblockTable value="{!EmpList}" var="E">
            <apex:column value="{!E.Name}"/>
            <apex:column value="{!E.Photo__c}"/>

Apex Controller:

global class Sample {   
    public List<Employee__c> EmpList {get;set;}
    public Sample() {
        EmpList = [SELECT Name, Photo__c FROM Employee__c Order By Name];


No comments:

Post a Comment

Sharing is Caring!!! Share this with your friends!!!

submit to reddit