Salesforce communities with LWC combination is evolving bigger in this 2020. Unfortunately some features that works well with the Aura Component is not working as expected with LWC, like the Community Navigation. Similarly,
Continue reading “Salesforce Communities : Building Login Page with LWC Component”
aura.redirect property that redirects on successful login fails to navigate with LWC component. Moreover,
NavigationMixin is not yet (as of this writing) supported in Lightning Community Login Page. But still, we can find an alternative approach to use LWC component without the need for Aura component.
Lightning component uses
forceCommunity:navigationMenuBase extension to create customized navigation for the community templates. It has
v.menuItems variable that holds the menu items created in the navigation. But the equivalent extension is not available for the LWC component yet.
Still, if we decide to go with LWC, here is the way:
Customizing the Lightning Datatable is quite easy with Salesforce. Here is a simple and sample code with with 3 pages, getting data dynamically for every pagination and selectable rows with memory on every page.
Continue reading “Salesforce Lightning : Datatable with Selectable Rows and Pagination”
Now, you can write assignment rule for any standard or custom object. You can assign ownership of a record to a user or a queue in a round robin fashion. Do you have custom owner field for your object? You can even assign a user or a queue to your custom field.
Continue reading “Salesforce: Round Robin Assignment Rule”
I have always seen Salesforce Aura Component developers using multiple checks before fetching data from
component.find method. It is because, it does return three types of results:
Continue reading “Salesforce Lightning : A better way to handle component.find return value”
undefined – when there are no items found on the DOM
- Single component – when there are only one item found in the DOM
- Array of components – when there are more than an item found in the DOM
Salesforce Lightning Components are a great way to build modern intuitive development. However, when there is a need for the component or the application to behave differently in different devices, we can make use of $Browser global value provider.
Continue reading “Salesforce Lightning : Device Based Behavior”
To build endpoints, we often need a better method that is simplified and clean. With Salesforce
Continue reading “Salesforce Apex : URL Parameter Manager”
PageReference class, it is easier for us to parse and build URL query string.
In Salesforce Lightning Community pages, we may have a logic that needs to be implemented in the Lightning Component when URL changes. This can be captured easily using
Continue reading “Salesforce : Detect change in Page URL”
To get the attributes of elements that has been targeted (which element has been clicked), we can use two ways:
Continue reading “Salesforce Lightning : Get attribute of the elements – Event Handling”