Posts

Showing posts from April, 2023

Aura component Example

 <aura:component controller="FOCDraftEmailController" implements="force:lightningQuickActionWithoutHeader,flexipage:availableForAllPageTypes,force:hasRecordId">     <aura:attribute name="focWithFocLineItem" type="FOC__c" default=""/>     <aura:attribute name="opportunityRecords" type="List" default=""/>     <aura:attribute name="hideAndShow" type="Boolean" default="false"/>     <aura:attribute name="fullHide" type="Boolean" default="true"/>     <aura:attribute name="key" type="String" />     <aura:handler name="init" value="{!this}" action="{!c.doInit}" />     <aura:attribute name="userInfo" type="user"/>       <aura:html tag="style">         .sticky{         position: absolute;         bottom: 30px;         padding:...

Use HTML in Apex Class

String htmlBody = '  <!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <ul type="disc"> <li> Dear Sir<ul type="disc"><p> It is required to send certain parts on FOC basis against the referred Sales Order.<br/><br/>  You are requested to please arrange to transfer below listed material to Store Loc. () & issue and hand over to Packing Dept. However, if parts are not available in store, kindly inform the shortage to concerned person/ department for necessary action.</p> </ul> </li> <li> Dear Packing Team<ul type="disc"> <p> Please arrange to get the material packed once issued from Store enabling us to perform further formalities. </p> </ul> </li> <li>List of parts under referred Sales Order is given under.<ul type="disc"> </ul> </li> </ul> <div style="...