Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [lwc-wire-adapter]

The tag has no usage guidance, but it has a tag wiki.

2
votes
1answer
39 views

Record Type Selection in LWC

I'm trying to create record Type selection screen in LWC, but getting this error afterRender threw an error in 'c:createContact' [Cannot read property 'recordTypeInfos' of undefined] HTML: <...
0
votes
1answer
46 views

Where do I put isLoading=true in a @wire method?

I'm creating an lwc, and I've been using an imperative call to get data, where it's easy to include setting a property isLoading before the call, so that a spinner shows while it's getting the data. ...
0
votes
0answers
54 views

LWC (enclosed by Aura component) @api property becomes undefined after Save

I have a flow where I am utilizing an Aura component (b/c LWC isn't supported by flows). The LWC I created is enclosed by the same Aura component. Now, the LWC has an @api exposed property that the ...
1
vote
1answer
50 views

How to use wired function?

I'm learning to write Lightning Web Components (and also rather a novice at modern javascript). I'm trying to make the code on the LWC Developer Guide page Handle Errors in Lightning Data Service ...
2
votes
1answer
98 views

Unable to pass parameters to wired property in LWC

Unable to pass parameters to wired property in LWC. I have a standalone app <aura:application extends="force.slds"> <c:abc a="a" b="a,b,c" c="c" /> </aura:application> and ...
2
votes
1answer
79 views

LWC Force Refresh Wire getRecord

I notice one problem with @wire(getRecord, { recordId: "$recordId", fields: FIELDS }). It normally works good, automatically changes when a field changes in the page but, if we have a roll-up summary ...
2
votes
2answers
78 views

LWC mass delete records using deleteRecord from lightning/uiRecordApi

I am using deleteRecord adapter from lightning/uiRecordApi. It works fine when I give it a record Id, but a would like to give it a list of records id to delete all of them at once. What I have done ...
1
vote
0answers
93 views

LWC Handling Multiple Dependents @Wire methods

How we handle dependent wire in LWC? For example : @wire(getObjectInfo, { objectApiName: OPP_OBJECT }) objectInfo; @wire(getPicklistValues, { recordTypeId: '$objectInfo.data....
1
vote
1answer
70 views

Lightning Web Components - I am having problems getting the PicklistValues for the Status field in the Campaign object

I have the following code import { LightningElement, wire, track } from "lwc"; import { getObjectInfo, getPicklistValues } from "lightning/uiObjectInfoApi"; import CAMPAIGN_OBJECT from "@...
0
votes
1answer
34 views

Can I use getListUi method with Related List Views?

Apologies if this question doesn't make sense. I'm fairly new to Salesforce and LWC. I am creating a component for the Service Console on the Account page. Essentially I want it to return a list of ...
5
votes
1answer
264 views

LWC : passing parameter to getrecord

I try to create a simple LWC to display an iframe whose url should be store in a custom field of the object So my html is <template> <lightning-card title="URL" icon-name="custom:...
3
votes
1answer
256 views

Salesforce LWC - Pass standard object to Apex Class [closed]

I am trying to pass a Case SObject to apex class as parameter, but is not working. I did not see the System.debug on the console. Why? //wire the record @wire(getRecord, { recordId: '$recordId', ...
1
vote
1answer
45 views

getListUi returns old list view

I am using following LWC wrapper in aura to get list views: LWC: import { LightningElement, wire, track, api } from 'lwc'; import { getListUi } from 'lightning/uiListApi'; export default class ...
0
votes
1answer
93 views

To call apex method every time when attribute changed

I have 2 components: - parent is Aura component - child is LWC component child component surround with aura:if and rendered in particular case. I need to call Apex method every time when 'param' ...
1
vote
1answer
25 views

Consume LWC's getListUi wire in Aura component

I want to grab list views in Aura by sobjectType and list view name. I already made a component that does a request, but fail to expose the data to Aura. Attribute change handler never fires and upon ...