Salesforce Visualforce Page

Salesforce

How to open records as sub tab from Visualforce in Salesforce Lightning?

Sample Code:<apex:page standardController="Account">    <apex:includeScript value="/support/console/51.0/integration.js"/>    <script type="text/javascript">            var recordIdForSubTab;        var recordNameForSubTab;                function openAsSubTab( recId, recName ) {                                recordIdForSubTab = recId;            recordNameForSubTab = recName;            sforce.console.getEnclosingPrimaryTabId( openSubtab );                    ....

Salesforce

Date and DateTime Formating in Salesforce Visualforce

Note: Use apex:outputField to consider using User's locale(currency and date format). Visualforce Page: <apex:page controller="Sample">     <apex:pageBlock >         <apex:pageBlockTable value="{!listAcc}" var="acc">             <apex:column value="{!acc.Name}"/>             <apex:column value="{!acc.Industry}"/>             <apex:column ....

Salesforce

How to pass URL Parameters to Lightning LWC 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() {                PageReference pg = new PageReference( '/lightning/n/Sample_LWC' );        pg.setRedirect( true ....