Category: controller

Apex Debugger || All you need to know || Advanced Configuration

This post is in continuation of my previous post where I have explained the basic configuration of Apex Debugger. If you haven’t gone through that, I would request you to please go here.So with the assumption that you have configured Apex Debugger correctly and can do debugging, in this post, I will explain some advanced configurations which you can do with Apex Debugger.So let’s start -Choose for which user you want to enable the Apex Debugger – You can choose the user for which you want to enable the Apex Debugger. For that open Debug Configuration. Then check the Whitelisting Enabled and Use SOQL where clause option. Then put the where clause. For example in the below screenshot, I have put the ID of the user and clicked on the Query button Choose the request type – With this option you can select the request type for which you want to enable the Apex Debugger. Currently we can enable Apex Debugger for the below options – Execute Anonymous, Inbound Email Service, Invocable Action, Lightning/Aura, Quick Action, REST, Run Tests Synchronous, SOAP, Synchronous, Visualforce, Visualforce Remote Method. If you don’t choose anything, it means it is enabled for all the above types of requests.Choose Entry Point – With this option, you can choose the entry point. For example if you want to enable Apex Debugger for particular Visualforce page, you can...

Read More

HOW TO PASS PARAMETERS BETWEEN TWO VISUALFORCE PAGES HAVING SAME CONTROLLER

Let me discuss about another use case where it is required to pass information from one VisualForce page to another VisualForce page while both the VisualForce pages are sharing the same controller. I know this is a very basic example, but I would like to include this use case as part of my previous post – HOW TO PASS PARAMETERS TO VISUALFORCE PAGES AND BETWEEN PAGES. Special thanks to Joseph McNulty for pointing this to me.Check out my youtube channel for more Salesforce videos -https://www.youtube.com/channel/UC3xFLBRl5JwqqTXbCd5p4YQAll about Salesforce Release Spring 21 here.To start with let us first create the common controller – SingleControllerHere is the first VisualForce Page – FirstPage.Here is the second VisualForce Page – SecondPage.As you can see from FirstPage, I am setting the name to the controller variable – name and then clicking on the commandButton,  goToSecondPage() method from controller is getting called. This goToSecondPage() method is returning a PageReference to the SecondPage. The point to notice here is that inside the method goToSecondPage(), I am making the setRedirect(false). I will explain what will happen if I set it to true later in this post. So what is happening after clicking on the button is that a SecondPage is getting displayed with Welcome message. But another interesting thing to notice here is that URL is not getting changed i.e. URL is still pointing to /apex/FirstPage though the content...

Read More
Loading

Earlier Posts

  • 2024 (18)
  • 2023 (47)
  • 2022 (25)
  • 2021 (35)
  • 2020 (41)
  • 2019 (13)
  • 2018 (16)
  • 2017 (14)
  • 2016 (18)
  • 2015 (74)
  • 2014 (20)