Posts

Replace Javascript custom button (To display VF Page) with New Custom Visualforce Action for Lightning

Image
Hi All, This is my first blog post and I plan to start this journey by writing a post on one common issue faced with Javascript custom button while trying to migrate from Class to Lightning. I know there are many other resources available online, in fact Lightning Component Developer Guide itself is a great resource and my attempt here is just to post my experience! Here we are going to create a new "Action" Button that will display content from our existing VF Page and this will replace our use case of using JavaScript Custom Button in Classic VF Page: <apex:page standardController="Expense__c" extensions="Expenses_VF_1Contlr"> <apex:form >     <apex:pageBlock >         <apex:pageblockButtons location="top">             <apex:commandButton value="Save" action="{!updtRcd}"/>         </apex:pageblockButtons>         <apex:pageMessages ...