June 2013

Salesforce

How to make apex:pageblock background white?

Syntax: <apex:pageblock mode="maindetail"> Example: Visualforce page: <apex:page controller="Sample" sidebar="false" ><style type="text/css">    .hideButton{display:none;}</style><chatter:feedWithFollowers entityId="{!contactDetail.Id}"/><apex:form >        <apex:pageblock title="Contact Detail" mode="maindetail">        <apex:pageblockSection columns="4" >            <apex:pageblockSectionItem >                Contact First Name:            </apex:pageblockSectionItem>              <apex:pageblockSectionItem ....

Salesforce

How to display chatter for a record in Visualforce page in Salesforce?

Syntax: <chatter:feedWithFollowers entityId="Id of the record"/> Example: Visualforce page: <apex:page controller="Sample" sidebar="false" ><style type="text/css">    .hideButton{display:none;}</style><chatter:feedWithFollowers entityId="{!contactDetail.Id}"/><apex:form >        <apex:pageblock title="Contact Detail" mode="inlineEdit">        <apex:pageblockSection columns="4" >            <apex:pageblockSectionItem >                Contact First Name:            ....

Salesforce

How to show lookup field in apex:outputfield in Salesforce?

Sample Code: Visualforce page: <apex:page controller="Sample" sidebar="false" ><style type="text/css">    .hideButton{display:none;}</style><apex:form >        <apex:pageblock title="Contact Detail" mode="inlineEdit">        <apex:pageblockSection columns="4" >            <apex:pageblockSectionItem >                Contact First Name:            </apex:pageblockSectionItem>              <apex:pageblockSectionItem >                <apex:outputField value="{!contactDetail.FirstName}">                    ....