Questions tagged [wire]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
23 views

LWC to display records grouped by RecordType Name

I'm trying to get a list of all CaseT records under their respective recordtype name in a lwc component. So, CaseT Recordtypename 1 CaseT A CaseT B CaseT C CaseT Recordtypename 2 CaseT X CaseT Y ...
2
votes
1answer
39 views

lwc wire server side changes not detected

I have a lwc component with apex service wired. This apex service takes an parameter. Since it is a wired service, I need to mark it as Cacheable=true on the apex controller. On the UI Wired service ...
1
vote
1answer
32 views

Reactive property in @wire notation from other @wired method

DISCLAIMER : I know there are better ways to get the current User Id, I am just writing this up as example to illustrate the issue I am facing. Let's say I have two apex methods that are @AuraEnabled ...
4
votes
1answer
105 views

Wired Apex Method not getting called on Load

I've a problem on a wired apex method not getting called from a Lightning Web Component on load. This web component is inside a parent Lightning Aura Component which has a date picker where today's ...
2
votes
1answer
43 views

Lwc getPicklistValues not working on OpportunityLineItem

I am trying to get picklist values for the field on OpportunityLineItem, but getting {}. import { LightningElement, wire } from 'lwc'; import { getPicklistValues } from 'lightning/uiObjectInfoApi'; ...
4
votes
1answer
71 views

lwc wired variable in refreshApex throws “resolved configuration is not available”

I have worked myself through several topics here on StackExchange already, finding this one to be the most helpful: working with the refreshApex feature in LWC However, the proposed solution does ...
0
votes
2answers
40 views

Does the getRecordUi support Location Object?

I have a lwc component, In order to show WorkORder details page I need a relatedField on a relatedObject wich is Location.Name. I have used two methods import LOCATION_NAME_FIELD from "@salesforce/...
1
vote
0answers
35 views

LWC: @wire No such column 'UserRoleId' on entity 'User'

I am getting this error when trying to do @wire for the current user. I assume that this is some sort of sharing issue. Is there a way to do something similar to without sharing for @wire so that I ...
2
votes
1answer
983 views

LWC: Does @AuraEnabled(cacheable=true) cache the result individually or combined?

Prequel: I have several methods in need of the same @wire operations. The approach I initially took was to make a new utilities component just for the wire operations and then use the pubsub library ...
1
vote
2answers
677 views

LWC Wiring apex method returns [object Object]

I'm trying to display the account of the logged in community user. Right now i'm only trying to display the Id but it's returning [object Object]. Maybe i'm not going about it the right way. Here is ...
4
votes
1answer
4k 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 ...
3
votes
2answers
364 views

Lightning Web Component - Must provide at least one of the parameters - 'fields', 'layoutTypes', 'optionalFields'. Update Record

I'm trying to run a simple update action on a record that I queried initially using a wired method. After prepare the recordInput object I get this error: { "error": { "ok": false, "status":...