Delete LWC with Developer Console

Center Blog
Delete LWC with Developer Console This a simple way to query your LWCs and delete them if you have to, with all their consequences. If you are sure that there is not harm by doing it, you can just search for the LWC you want to delete using the Developer Console. There are some situations in which you could delete a LWC for a particular reason. I had once a situation in which I was trying to create a Lightning Component with the name: AccountMap And I got an error that I was not sure, initially, the reason why... The reason was that I had a LWC with the same name and that was not allowing me to create a LC. I renamed the LWC to AccountMapLWC hopping that this…
Read More
From Picklist to SelectOption

From Picklist to SelectOption

Center Blog
From Picklist to SelectOption There are occasions in which you want to build an user interface that will not save records and it just interacts with the user input data. Something like a search engine or a currency converter app. In some cases, it is better to use SelectionOption than Picklist in your app. We can easily do this by using the Schema system class. As we know the Schema class "Contains methods for obtaining schema describe information".In this class, we can see how to pass all the values from a picklist to a List of SelectionOption. [code lang="php"] /********************************************************************** * * From Picklist to SelectionOption * ************************************************************************/ public without sharing class ConverterSupportClass { public List<SelectOption> CurrencyOptionsOne {get;set;} public List<SelectOption> CurrencyOptionsTwo {get;set;} static void ourMethod(){ // Getting all values from…
Read More
Dynamic Account Search

Dynamic Account Search

Center Blog
Dynamic Account Search I had a business requierment that was involving coding a controller in combination wiht a Visualforce page. The idea was to enable users to dynamically search for accounts. Looking for some ideas I found a really nice example from Jeff Douglas, you can find it here. So I took this structure and build my own page. The most interesting part of this code is the fact that you don't event need to click a "search" button to start retriving results. As nice as that can be there are other things that I really like about this code. The simplicity and efficiency of this code are really outstanding, that is why I want to share this with you, all credit goes to Jeff of course ... I'm just a messenger. This…
Read More