Questions tagged [wire]

The tag has no usage guidance.

8 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
96 views

LWC: Assertion error when testing @wire chain in Jest

I am trying to write Jest test for a component with two @wired calls (both bound to functions), but I get assertion error about property of second @wire call not being annotated with wire annotation. ...
1
vote
0answers
52 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 ...
0
votes
1answer
24 views

LWC @wire works only if page is refreshed

I got a problem with @wire. To get refreshed data I need to refresh the whole page manually. If I switch to another navigation item add or delete records, nothing happens after returning to the ...
0
votes
0answers
23 views

RefreshApex is calling ApexMethod but the contents of wire function are not executed

RefreshApex is calling ApexMethod but the contents of wire function (wiredDisableButton) are not executed. First time when user clicks the updateCase button the Apex method returns true and case is ...
0
votes
1answer
189 views

LWC Wire null check in order to return null or an empty array

Hi I need help on of my req in which i want some fields from Salesforce server to display in the LWC component on the basis of it i want to show one message in the child component, If there is no ...
0
votes
1answer
63 views

LWC Help changing field value to OldValue from Histories related object

I am having real trouble with a simple task. I have an object Contract__c and it has history tracking on. I need to button onclick revert the Contract_Status__c field back to its most previous ...
0
votes
0answers
41 views

How to refresh the other lightning web components on a page when one component updates the data on a record-form?

I have actually 2 Lightning web components- 1.) lwcPropertyList 2.) lwcProperyDetail USECASE -> When I update any of the field on the record-from(present on lwcPropertyDetail), it is required that ...
0
votes
2answers
94 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/...