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
Salesforce

Creating a salesforce lightning web component in visual studio code

import { LightningElement, track } from ‘lwc’; export default class HelloLWC extends LightningElement { //default values @track typedValue = ”; salutationOptions = [ {‘label’: ‘None’, ‘value’: ‘None’}, {‘label’: ‘Mr.’, ‘value’: ‘Mr.’}, {‘label’: ‘Ms.’, ‘value’: ‘Ms.’}, {‘label’: ‘Mrs.’, ‘value’: ‘Mrs.’}, {‘label’: ‘Dr.’, ‘value’: ‘Dr.’}, {‘label’: ‘Prof.’, ‘value’: ‘Prof.’}, ]; //method on click of button handleClick(){ const […]