Posts

Showing posts from November, 2022

HTML Code and (Salesforce Troop) Grid in lwc Generator

 HTML - https://www.htmlcodegenerator-tools.com/2020/01/html-css-simple-responsive-html-table-generator-colspan-rowspan.html Grid Generator - https://www.salesforcetroop.com/grid_generator/

carousel Slider in LWC Using CSS

  < template >      < lightning-card   variant = "Narrow"   title = "" >          < div   class = "slider" >              < div   class = "scrollmenu" >                  < template   for : each = { listofWrapper }  for : item = "acc" >                      < span   key = { acc . accID } > {acc.accName}  < br />                           <!--<div class="slds-list_horizontal slds-m-right_large" key={acc.accID} > {acc.accName} <br/>--> ...

All Trigger Assignment [CRM Landing]

Trigger --> Write a trigger on opportunity to related account and find max and min amount and then populatetd on account object without aggregate fuction. ------------------------------------------------------------------------------------------------------------------------- trigger opportunityMaxAndMin on Opportunity (after insert, after update, after delete) {     Set<Id> accountIds = new Set<Id>();          if (Trigger.isInsert || Trigger.isUpdate) {         for (Opportunity opp : Trigger.new) {             accountIds.add(opp.AccountId);         }     } else if (Trigger.isDelete) {         for (Opportunity opp : Trigger.old) {             accountIds.add(opp.AccountId);         }     }          Map<Id, Account> accountsToUpdate = new Map<Id, Ac...