APEX SALESFORCE Visualforce

How to Replace String Values in Visualforce Page

How to Replace String Values in Visualforce Page SUBSTITUTE – new text for old text in a text string. Example: {!SUBSTITUTE(Lead.Company, ” “, “”)} //Remove the Space in Lead Company {!SUBSTITUTE(Account.Name, “”, “”)} //Remove dot value in Account Nmae <apex:outputText value=”{! SUBSTITUTE( SUBSTITUTE(Account.Description, ‘[‘, ‘<sup>’), ‘]’, ‘</sup>’ ) }” escape=”false”/> Replace String…

Read More
Lightning SALESFORCE

How to Add Hyperlink in lightning:datatable

How to Add Hyperlink in lightning:datatable Below are the Sample Code to add hyperlink in Lightning DataTable:- {label:’Website’, fieldName:’Website’, type: ‘url’, typeAttributes: { label: ‘My Website Name’, target:’_blank’}} Apex Class:- public class AccountController { @AuraEnabled public static List<Account> getAccounts(){ List<Account> acList…

Read More