Magulan Duraipandian

Salesforce

Standard Objects in Salesforce

Standard objects are objects that are included with Salesforce. Common business objects like Account, Contact, Lead, and Opportunity are all standard objects. Trailhead - https://trailhead.salesforce.com/en/content/learn/modules/data_modeling/objects_intro Reference Link - https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_list.htm

CSS

CSS for stylish button

Sample Code: <!DOCTYPE html> <html> <head> <style> .button { color:white; font-size:12px; font-weight:bold; border:outset; text-align:center; border-color:black; background-color: black; } </style> </head> <body> <button class="button">Sample Button</button> </body> </html>

Salesforce

Age calculation using Apex and Visualforce

Sample code: Visualforce page: <apex:page controller="Sample" ><apex:form >    <apex:pageblock >        <apex:pageblockSection >            <apex:pageblockSectionItem >Date:</apex:pageblockSectionItem>            <apex:pageblockSectionItem ><apex:inputtext onfocus="DatePicker.pickDate(true, this , false);" value="{!dat}" id="dt"/></apex:pageblockSectionItem>            <apex:pageblockSectionItem >Age:</apex:pageblockSectionItem>                                    <apex:pageblockSectionItem ><apex:outputText value="{!age}" /></apex:pageblockSectionItem>                    ....