Salesforce Visualforce Page

Salesforce

How to pass URL Parameters to Lightning Aura Component Tab from Visualforce Page in Salesforce?

Sample Code: Visualforce Page: <apex:page controller="SampleVFController">     <apex:form>         <apex:commandButton value="Click" action="{!openLightningComponent}"/>     </apex:form> </apex:page> Apex Class: public class SampleVFController {          public PageReference openLightningComponent() {        ....

Salesforce

Dynamic href to list of records in LWC Salesforce

LWC: HTML: <template>     <div class="slds-box slds-theme--default">         <template if:true = {records}>                                   <div style = "height: 300px;">                     <table class="slds-table slds-table_cell-buffer slds-table_bordered slds-table_striped">                         <tr>                             <th scope ....

Salesforce

Pass values from one Visualforce Page to Another Visualforce page in Salesforce

Visualforce Page:<apex:page controller="AccountListController">        <apex:form>            <apex:pageBlock id="pg">                        <apex:pageBlockSection >                <apex:panelGrid columns="3" cellpadding="3" cellspacing="3">                    <apex:outputLabel value="Account Name: "/>                    <apex:inputText value="{!acctName}"/>                    <apex:commandButton value="Go" action="{!searchAcct}"/>                </apex:panelGrid>             </apex:pageBlockSection>                    <apex:pageBlockSection rendered="{!listAcct.Size ....

Salesforce

Subscribe, Unsubscribe MessageChannel in LWC, Aura and Visualforce Page in Salesforce

GitHub Source Code:https://github.com/magulan/Salesforce-Message-ChannelSampleChannel.messageChannel-meta.xml:<?xml version="1.0" encoding="UTF-8"?><LightningMessageChannel xmlns="http://soap.sforce.com/2006/04/metadata">    <masterLabel>SampleChannel</masterLabel>    <isExposed>true</isExposed>    <description>This is a sample Lightning Message Channel.</description>    <lightningMessageFields>        <fieldName>variable1</fieldName>        <description>Variable 1</description>    </lightningMessageFields>    <lightningMessageFields>        <fieldName>variable2</fieldName>        <description>Variable 2</description>    </lightningMessageFields></LightningMessageChannel>Aura:Component:<aura:component implements="flexipage:availableForAllPageTypes" access="global">        <aura:attribute type="String" ....

Salesforce

How to show DateTime in Visualforce page in User’s Time Zone instead of GMT in Salesforce?

Sample Code: <apex:page StandardController="Opportunity"> GMT: <apex:outputText value=" {0,date,M/d/yyy h:mm a}"> <apex:param value="{!Opportunity.LastModifiedDate}"/> </apex:outputText> <br/> User Time Zone: <apex:outputField value="{!Opportunity.LastModifiedDate}"/> </apex:page> Output: For using apex:outputText tag use <apex:page> <table> <tr> <td><apex:outputText ....