Categories
lwc Salesforce

Launch custom LWC from Quick Action using Lightning Component

As of now, SFDC does not support Quick Action for LWC Solutions always exists Problem- Using Quick Action to launch custom Lightning web components. Solution:-  Create a Lightning component as a wrapper for Quick action, to launch in subTab by using Open SFDC interface. ({ init: function(component) { var workspaceAPI = component.find(“workspace”); workspaceAPI.getFocusedTabInfo().then(function(response) { workspaceAPI.openSubtab({ […]

Categories
lwc Salesforce

Expand and collapse single Lightning web component Accordion

How to collapse and expand LWC accordion when an only a single accordion section is available love your work Problem- We need to have one account accordion which can be expanded and collapsed by the user but by default its launched as collapsed. Solution:-  Link for the working code Example LWC Played with properties of […]

Categories
lwc Salesforce Vlocity

Using Custom LWC inside Vlocity Omniscript

Create a custom Radio Group inside vlocity Omniscript NEVER GIVE UP Problem- Due to omniscript limitations, it happens you need to use custom LWC to achieve the requirements. Solution:-  Get the custom LWC from the salesforce Lightning web components (in our example we are using radio group) <template> <lightning-radio-group name=”radioGroup” label=”Radio Group” options={options} value={value} type=”radio”></lightning-radio-group> […]

Categories
Apex lwc Salesforce

Issue with Apex replay debugger on running debug logs in VS Code

The log must be generated with log categories Apex code at the FINEST level and Visualforce at the FINER level.? THINK OOTB Problem- When running apex replay debugger, in VSCode on a debug file it generates error message. Solution:-  Follow what error is saying and update the first line of log file, before running the […]

Categories
lwc Salesforce

How to enable debug mode for Lightning web components ?

How to enable debug mode for Lightning web components? DEBUGGING IS SEXY Problem- In the developer environment I want to debug my LWC but it’s coming as minified when rendered in browser sources and also shows proxy data? Setup > debug mode > select the one under lightning  components Edit your user > enable “Debug […]