Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 38079

This tag is for questions related to JavaScript, CSS, or Markup when used in the Lightning Web Component (LWC) programming model, or for questions of interoperability between LWC and the original Aura-based lightning components.

5 votes
2 answers
3k views

backgroundContext not working for Edit NavigationMixin LWC

I have overridden standard edit page with a lightning controller which will redirect to standard lightning record page or custom lightning component by different recordtypes. The problem i am facing …
learningmode's user avatar
4 votes
1 answer
10k views

How to refer child component name in parent component LWC

I have a child component folder "bCPContractTOP" which has bCPContractTOP.HTML bCPContractTOP.js bCPContractTOP.js-meta.xml How to call this from parent component. I am getting one error LWC1010 …
learningmode's user avatar
4 votes
2 answers
3k views

Open LWC as a full page without salesforce header

I have a button on Lightning Record page. On click i am redirecting to a LWC. Is there anyway where i can redirect or open the LWC in a full screen page. As of now it is opening with salesforce main h …
learningmode's user avatar
3 votes
2 answers
13k views

Read URL parameters in LWC salesforce

I am using lightning navigation to pass recordId from the parent component to the child component. On button click, I am navigating to child component like below URL - https://XXXXXXXXXX.lightning.for …
learningmode's user avatar
3 votes
1 answer
2k views

LWC not recognizing PageRefrence changes and not displaying updated values

I have the below parent aura component which has parent LWC - On clicking redirect button on parent i am passing the attritubes in URL and the values are displayed on the child. This happens for firs …
learningmode's user avatar
3 votes
0 answers
797 views

Page break CSS not working in lightning LWC Salesforce

I am trying to do page break in LWC. But it is not working. Below is the code . How to do page break in lightning while printing the page to pdf. <template> <div> <lightning-layout> …
learningmode's user avatar
3 votes
1 answer
898 views

Sharepoint Files Connect identifiers in Content Version Object

After uploading a Sharepoint file via Salesforce Files Connect, i see a record gets created in Content Version object I want to know one of the field in Content Version (ExternalDocumentInfo2) , how …
learningmode's user avatar
2 votes

LWC not recognizing PageRefrence changes and not displaying updated values

Found one solution - In the component with lightning:isUrlAddressable simply add a change handler for the pageReference state. Component: <aura:handler name="change" value="{!v.pageReference}" act …
learningmode's user avatar
2 votes
0 answers
483 views

react-dom js file not loading properly in LWC

I am trying to import react and react-dom js file from static resource. i have usded the below cdn to collect the js file into static resource https://cdnjs.cloudflare.com/ajax/libs/react/16.9.0/cjs …
learningmode's user avatar
2 votes
0 answers
448 views

Get child record values lightning web component

I am trying to get account child object contact record values by using getRecordUi in recordIds i am passing Account Record Id. I am getting a big JSON response. But in that response i am not findin …
learningmode's user avatar
2 votes
1 answer
3k views

Getting Error System.HttpResponse[Status=Moved Permanently, StatusCode=301] [closed]

I am trying to upload a doc from salesforce to Sharepoint. Below code i am executing in developer console.i am getting error as below System.HttpResponse[Status=Moved Permanently, StatusCode=301] …
learningmode's user avatar
2 votes
1 answer
861 views

react.createElement is not a function LWC

I am getting the below error when using react js in LWC. Any idea how to resolve this. afterRender threw an error in 'c:razorpay' [c.createElement is not a function] JS import { Lightnin …
learningmode's user avatar
1 vote
1 answer
1k views

Css not working in Lightning Web Component

I have this below HTML page in LWC - <lightning-layout multiple-rows="true"> <lightning-layout-item padding="horizontal-small" size="4"> <div class="borderclass"> …
learningmode's user avatar
1 vote
2 answers
2k views

Not getting recordId in URL generated from lightning-navigation

On button click on parent LWC component, i am calling lightning-navigation to call child component. I am passing recordID in the attributes as below - <template> <lightning-button label="CallChild" …
learningmode's user avatar
1 vote
0 answers
210 views

updated input Values not refecting on child html component

On button click i am redirecting to child LWC by using NavigationMixin.Navigate. Below is the URL which gets generated https://XXXXXXXXX.lightning.force.com/lightning/cmp/c__ChildComp?c__recordId=123 …
learningmode's user avatar

15 30 50 per page